如何为产品范围上的API设置CORS策略 [英] How to setup the CORS policy for the APIs on Products scope

查看:73
本文介绍了如何为产品范围上的API设置CORS策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

众所周知,政策范围分为四个等级:

As we all know the policy scopes are evaluated in four levels:


  1. 全球范围
  2. 产品范围
  3. API范围
  4. 操作范围

但是当我尝试将CORS策略添加到产品范围时,我发现该选项显示为灰色。

But when I tried to add the CORS policy to the product scope, I find the option is grayed out.

有人能帮我解决这个问题吗?

Could anyone help me figure out this problem?

推荐答案

查看
跨域政策
可用,它似乎产品范围的设计不支持 cors 策略但仅适用于API和操作范围。

Looking at the Cross Domain Policies available, it seems that the cors policy isn't supported by design for the product scope but just for API and Operation scopes.


这篇关于如何为产品范围上的API设置CORS策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆