What does exactly is the Microsoft.Owin.Cors middleware when used with ASP.NET Web Api 2.0?
问题 I have an ASP.NET Web Api 2.0 project with token authentication and everything done mainly following this article: Token Based Authentication using ASP.NET Web API 2, Owin, and Identity, Bit Of Technology But I am struggling to understand what exactly this line of code in my Startup.cs does: app.UseCors(Microsoft.Owin.Cors.CorsOptions.AllowAll); This does not make the Web Api add the Access-Control-Allow-Origin header to my API responses, in other words it does not enable Cors in my Web Api