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:
- $.ajax({
- url: "myurl",
- dataType: 'json',
- success: function(response)
- {
- // read cookie here...
- }
- });