CORS is not working in web api with OWIN authentication

前端 未结 5 603
花落未央
花落未央 2020-12-05 00:36

In my application i am using web api with token based authentication with CORS support, but when client request for the token, an error occured due to CORS (Cross-Origin Re

5条回答
  •  庸人自扰
    2020-12-05 01:33

    Especially if you are having problem with the Web API bearer token when using CORS then dont forget to put "TOKEN" in the list of your allowed methods.

    Please put the code in your system.webServer of web.config, that is how i solved mine

    
    
    
     
    

提交回复
热议问题