netcore:2.2
configuration.json中配置
{ "DownstreamHostAndPorts": [ { "Host": "xxxx", "Port": 80 } ], "DownstreamPathTemplate": "/api/{url}", "DownstreamScheme": "http", "UpstreamHttpMethod": [ "Get", "Post", "OPTIONS" ], "UpstreamPathTemplate": "/cruise/{url}", "UseServiceDiscovery": true },
将netcore网站发布到iis网站中,已设置无托管代码
在实际使用时,发送一个options请求
win 10电脑(没有安装360,谷歌最新版浏览器) 访问无任何问题
win7电脑(安装360,谷歌最新版浏览器)出现跨域问题
Access to XMLHttpRequest at 'http://gateway.api.xxx.com/cruise/xxxx' from origin 'http://www.xxxx.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
请问问题出现在何处,有无解决方向