Cross domain POST request is not sending cookie Ajax Jquery

The Solution to Cross domain POST request is not sending cookie Ajax Jquery is


You cannot set or read cookies on CORS requests through JavaScript. Although CORS allows cross-origin requests, the cookies are still subject to the browser's same-origin policy, which means only pages from the same origin can read/write the cookie. withCredentials only means that any cookies set by the remote host are sent to that remote host. You will have to set the cookie from the remote server by using the Set-Cookie header.

~ Answered on 2013-01-23 04:31:25


Most Viewed Questions: