Cross-domain access issues in ASP.NET MVC

错误代码:
Access to XMLHttpRequest at ‘http://localhost:8765/api/Me’ from origin ‘null’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status.





Solution:
Insert picture description here

Reprinted from: https://www.cnblogs.com/tiger2soft/p/5711173.html

Guess you like

Origin blog.csdn.net/weixin_44575911/article/details/110944270