简体   繁体   English

Azure存储CDN和CORS的问题

[英]Issue with Azure Storage CDN And CORS

Having an issue with Azure storage CDN. Azure存储CDN出现问题。 We have it configured for CORS, basically we allow all headers and origins (*), and GET|HEAD| 我们为CORS配置了它,基本上我们允许所有标头和原点(*),以及GET | HEAD |。 OPTIONS. 选项。 Everything works fine when we are using the storage direct host. 当我们使用存储直接主机时,一切正常。 When we switch it over to use the CDN host,the OPTIONS request stops returning any of the allow headers and causes cross origin failures. 当我们将其切换为使用CDN主机时,OPTIONS请求停止返回任何allow标头,并导致跨源失败。 On other gets I do get the allow origin header but nothing else. 在其他方面,我确实得到了allow origin标头,但没有其他。 Anyone seen this or am I overlooking a config option somewhere? 有人看到过这个消息还是我在某个地方忽略了配置选项? Happens locally talking to Azure and on our Azure hosted site. 发生在本地与Azure以及我们Azure托管站点上的交谈。

Azure CDN profiles from Akamai currently do not tunnel OPTIONS requests. Akamai的Azure CDN配置文件当前不通过隧道传送OPTIONS请求。 There is a patch currently underway to enable OPTIONS requests for cors pre-flight. 当前正在运行一个补丁,以启用OPTIONS对cors飞行前的请求。

If you don't use pre-flight requests, does CORS work? 如果您不使用飞行前请求,CORS是否可以正常工作?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM