Why is ie8 CORS / XDomainRequest not sending cookies?

I managed to make a CORS request on IE8 using XDomainRequest. However, it seems cookies are not being sent to IE8. Is there any hack for this? The request is made from buy.example.com to buy.api.example.com

+4
source share
2 answers

There is no way to exclude the inclusion of the authentication cookie value / token in the query string, for example:

  buy.api.example.com/?sessionId=$sessionId&otherparameters=test 
and install your web service to check the query string if cookies are missing.
+3
source

There is another way. If you use SSL on a non-default https port, it will continue to send cookies. For example, if your URL looks like this https://example.com:8443/xxxx , it will send cookies.

I am experiencing the same problem as you. My web application (internal web application) worked with https, but in a non-standard port, and it just works fine. When I configure to use 443, it stops working because cookies are not sent by the XDomainRequest object.

I hope this helps

0
source

Source: https://habr.com/ru/post/1400005/


All Articles