Credentials flag is 'true', but the 'Access-Control-Allow-Credentials

前端 未结 4 1222
失恋的感觉
失恋的感觉 2021-02-15 03:59

I am trying to connect to a ASP.NET Web-API Web Service from an AngularJS page and I am getting the following

Credentials flag is \'true\', but the \'Access-Control-Al

4条回答
  •  孤街浪徒
    2021-02-15 04:54

    For whom, who uses WebApiConfig.cs:

    config.EnableCors(new EnableCorsAttribute("*", "*", "*") { SupportsCredentials = true }); 
    

提交回复
热议问题