How does the Chrome browser decide when to send OPTIONS?

后端 未结 3 2014
感动是毒
感动是毒 2020-12-09 18:48

I have an AngularJS WebAPI application.

As far as I can understand the OPTIONS request is constructed automatically by the browser.

POST http://loca         


        
3条回答
  •  悲哀的现实
    2020-12-09 19:01

    You can also clean your Headers when you login, before sending your POST request:

    delete $http.defaults.headers.common['Authorization'];

提交回复
热议问题