应用程序在IE和Firefox中运行良好,仅在Chrome中出现问题。问题是断断续续的,并且多次重载后应用程序都可以工作。请帮忙。
我的应用程序是一个有角度的应用程序,它向微服务发送XHR请求。以下是服务器对OPTIONS请求的响应示例(您可以看到响应中没有302)。
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Server: Microsoft-IIS/7.5
Access-Control-Allow-Origin: http://localhost:3000
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: authorization
X-Frame-Options: sameorigin
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Permitted-Cross-Domain-Policies: master-only
Content-Security-Policy: default-src 'self' 'unsafe-inline';
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
ServerName: WEBWTS350
Date: Fri, 13 Jul 2018 18:07:14 GMT
Content-Length: 0