有很多关于'Access-Control-Allow-Origin'的主题,但是我找不到一个为Openseadragon这是子域名。我的网站是exampple.domain.com试图从anotherexampple.domain.com打开DZI和我有一个错误:对于具有2个不同子域/ CORS问题的相同域,没有“Access-Control-Allow-Origin”
XMLHttpRequest cannot load anotherexampple.domain.com/123.dzi. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'exampple.domain.com' is therefore not allowed access.
两个网站都使用相同的HTTPS协议,和服务器是IIS
为exampple.domain.com服务器设置了:
访问控制允许来源:*
和Server for anotherexampple.domain.com设置有:
访问控制允许来源:* .domain.com
此外,openseadragon有设置:
crossOriginPolicy: 'Anonymous',
ajaxWithCredentials: false,
有人可以告诉我如何解决与不同子域相同的域的CORS问题?提前致谢。
[请不要将标记置于问题标题中](https://stackoverflow.com/help/tagging) – Liam
“有人可以告诉我如何修复与不同子域相同域的CORS问题吗?” - 以同样的方式为任何其他不相同的原点修复交叉原点问题。 – Quentin