javascript - How to set cookie value with AJAX request? - Stack Overflow
Basically, ajax request as well as synchronous request sends your document cookies automatically. So, you need to set your cookie to document, not to request. However, your request is cross-domain, and things became more complicated. Basing on this answer, additionally to set document cookie, you should allow its sending to cross-domain environment:
Read full article from javascript - How to set cookie value with AJAX request? - Stack Overflow
No comments:
Post a Comment