APIM的CORS政策应低于“基础”。 [英] CORS policy on APIM should be below "base"

查看:69
本文介绍了APIM的CORS政策应低于“基础”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好, 

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?

提前全部谢谢。

推荐答案

基本上,首先执行的CORS策略处理它。这个 SO回答有更多细节可以清理。

Basically, the CORS policy first executed handles it. This SO answer has some more details to clear things up.

至于基本政策是指所描述的父政策(如果有的话)
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政策应低于“基础”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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