Read cookie from json cross domain ajax response

Read cookie from json cross domain ajax response

Hey everyone

I have a question: I'm calling an application with a username, and the application returns a cookie in the headers if the username is correct.

I'm doing a cross-domain JSONP ajax query. 

Is is possible to read the content of the cookie? This is my code:

  1. $.ajax({
  2. url: "myurl", 
  3.   dataType: 'json',
  4.   success: function(response)
  5. {
  6.     // read cookie here...
  7.    }
  8. });
    • Topic Participants

    • rune