问题描述
大家好,
Hi all,
我需要在我的api上推送CORS polici(我使用的是Azure Api Manager)才能被我的JS / ajax占用请求。因为如果CORS政策低于"基础",它会被忽略。你能说出为什么以及这个行为的逻辑是什么?
I needed to push up CORS polici on my api (I am using Azure Api Manager) in order to be taken by my JS/ajax request. Because if CORS policy was below "base" it would be ignored. Can you tell why and what is the logic begind this behaviour?
提前全部谢谢。
推荐答案
至于基本政策是指所描述的父政策(如果有的话)
here 。 策略范围 层次结构为全局 - >产品 - > API - >操作。
As for the base policy refers to the parent policy (if any) as described here. The policy scope hierarchy is Global -> Product -> API -> Operation.
我相信文档对此并不十分清楚。请随时在文档页面底部打开一个问题。
I believe the docs aren't really clear on this. Please feel free to open an issue at the bottom of the doc page for this.
这篇关于APIM的CORS政策应低于“基础”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!