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

前端 未结 3 784
栀梦
栀梦 2021-02-15 04:21

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

3条回答
  •  萌比男神i
    2021-02-15 04:53

    For whom, who uses WebApiConfig.cs:

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

提交回复
热议问题