Closed saitonakamura closed 7 years ago
When using PUT
request, credentials: 'include'
isn't woking either, but in that case even application/x-www-form-urlencoded
isn't helping. As a second workaround I temporarily changed all my PUT
and DELETE
(which I didn't check by the way) to POST
. Semantics is ruined, but thanks gods, it isn't a public api.
Sorry, it was poor ASP.NET WebAPI OPTIONS request handling
When I'm making POST cors request with credentials using
Content-Type: 'application/json'
it won't send cookiesHowever, if I change
Content-Type
toapplication/x-www-form-urlencoded
(like in this comment) and changeJSON.stringify
toformurlencoded
from form-urlencoded package, cookies are sended properly, so it's kinda workaround