我有一个启用 CORS 的项目
HttpContext.Current.Response.AddHeader("Access-Control-Allow-Origin", "http://localhost:63736");
HttpContext.Current.Response.AddHeader("Access-Control-Allow-Methods", "POST,GET,DELETE,PATCH,PUT,OPTIONS");
HttpContext.Current.Response.AddHeader("Access-Control-Allow-Headers", "Content-Type, Authorization, Accept,WWW-Authenticate");
调用 .../api/login 使用 jquery 可以通过,但是当我尝试用微风查询 odata 时,我得到了 cors 错误
XMLHttpRequest cannot load http://localhost:53809/odata/Metadata. Origin http://localhost:63736 is not allowed by Access-Control-Allow-Origin.
怎么来的?