从VS2017运行Angular应用程序时出现CORS错误

时间:2017-11-03 04:55:17

标签: angular asp.net-core cors

我正在尝试从VS2017运行.net核心角项目,但我在Chrome(和Firefox)中遇到此错误。有谁知道这意味着什么?该解决方案在同事PC上完美运行。

Failed to load https://unpkg.com/@angular/core/bundles/core.umd.js: Redirect from 'https://unpkg.com/@angular/core/bundles/core.umd.js' to 'https://unpkg.com/@angular/core@5.0.0/bundles/core.umd.js' has been 
blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost:27407' is therefore not allowed access.

我认为这是一些未正确更新的软件包,但我已经尝试了所有我认为无法解决的更新技巧。

0 个答案:

没有答案