In order to allow authentication via cors using this plugin, a header Access-Control-Allow-Credentials=true must always be sent to the client, not only for an OPTIONS request. This allowes the client to add withCredentials to the XHR request.
This is required e.g for exchanging the session cookie or OAuth cookies.
In order to allow authentication via cors using this plugin, a header
Access-Control-Allow-Credentials=true
must always be sent to the client, not only for anOPTIONS
request. This allowes the client to addwithCredentials
to the XHR request.This is required e.g for exchanging the session cookie or OAuth cookies.
See here for more details: http://www.html5rocks.com/en/tutorials/cors/#toc-adding-cors-support-to-the-server