Linked Questions
30 questions linked to/from Sending credentials with cross-domain posts?
286 votes
16 answers
361k views
Set cookies for cross origin requests
How to share cookies cross origin? More specifically, how to use the Set-Cookie header in combination with the header Access-Control-Allow-Origin? Here's an explanation of my situation: I am ...
17 votes
5 answers
21k views
Keeping the cookie after a cross-domain ajax request
A javascript application running on 10.0.0.1 tries to authenticate it's users with cross-domain ajax calls. The request looks like: function test(again){ $.ajax({ type: 'GET', url: 'http://...
17 votes
1 answer
17k views
Set-Cookie header not setting cookie in Chrome
I'm AJAXing a call to a another services API, which is then supposed to return a cookie that will be set in my browser to allow me to make the rest of my API calls. However, while the response ...
8 votes
2 answers
6k views
Missing headers in response for jQuery request with CORS
I'm trying to execute CORS request with jquery buy I'm getting strange behaviour. When I use curl to execute the request everything is working fine. But when I use jQuery the things goes horribly ...
6 votes
2 answers
39k views
Sending authorization headers with jquery and ajax
I have looked at the following questions here on stackoverflow with no luck in what im trying to do. Ajax Authorization Request headers fails again and again jQuery Ajax Unauthorized 401 Error ...
13 votes
1 answer
15k views
Jquery Ajax CORS + HttpOnly Cookie
I have got CORS working on my current project, although one thing I cannot seem to get working correctly is the cookies. Now I get the cookie fine, the server issues it and sends it down and firefox ...
8 votes
2 answers
5k views
My CSS cant load web font woff files located on an other https+auth server (CORS related)
My CSS is hosted on https://www.site1.com (it is an authenticated domain) and it uses woff/ttf files located on https://media.site1.com (it is also authenticated - same auth than www). To connect to ...
8 votes
2 answers
32k views
CORS $.ajax session cookies (access-control-allow-credentials & withCredentials=true)
I realize this question has been asked a dozen or more times and each response given indicates I am doing it right but perhaps I am missing something. AJAX serves up CORS request like so... $.ajax({ ...
4 votes
1 answer
5k views
Firefox: Cross-domain requests with credentials return empty
Firefox send a cross-domain post with credentials, I can (using Charles - a proxy for HTTP debugging) see that the server is sending back the response… But Firefox isn't "letting me see it" (for lack ...
11 votes
2 answers
2k views
Possible to modify cookie values in a jQuery ajax request?
I am working on a Chrome extension that would allow users to record all HTTP requests for a site, modify pieces of the request and then resend it. I'm hoping to use jQuery's ajax method to construct ...
7 votes
2 answers
2k views
Cross domain login check?
I have bookmarklet. If I open a random page (not mine) and click the bookmarklet, I would like to check if the user is logged in on my page. I am already doing Cross-Domain AJAX Request using Access-...
5 votes
1 answer
5k views
Solution to Subresource requests whose URLs contain embedded credentials are blocked
http://username:[email protected]/snap I have been using this embedded credentials method to retrieve photos from IP Cameras. Now that Google Chrome update blocked this method, I got this error: [...
1 vote
1 answer
5k views
Unable to send a CORS POST request with jQuery
I'm trying to send a POST request to a separate subdomain via ajax. The preflight request (OPTIONS) is successful, but the following XMLHttpRequest request returns the "Origin http://app.example.com ...
2 votes
1 answer
4k views
Consuming Web API Using jQuery Ajax required - Cross Origin Resource Sharing (CORS) Issue
I'm trying to make a simple web api call using jQuery's ajax() function. I have an authorization token I need to pass to the api method in the header. The web api method is working correctly because I ...
2 votes
2 answers
1k views
Cross site Ajax.Request with cookies and Prototype.js
I need to tell Ajax.Request (from Prototype.js) to set xhr.transport.withCredentials to true (to enable cookies in my cross site requests headers). I failed by trying: Ajax.Request('http://...