Thursday, November 14, 2013

Cookies are not set in AJAX request

I am setting the cookies to browser by an .js ajax request. After some time when i am sending the .html extension ajax request  my browser is not sending cookies along with the request in ajax call. After some googling i found that i have to set the

xhrFields: {
           withCredentials: true
}

in my ajax call.

No comments: