I'm trying to do a CORS GET that sends the cookie along with it. I've set all the headers (access-control-allow-origin
, access-control-allow-credentials
, access-control-allow-headers
) in the server and am using withCredentials: true
and crossDomain: true
in the jquery ajax request. Everything works when I tell my browser to allow third-party cookies. Is there any way to do this without forcing visitors to allow third party cookies? I've even tried redirecting the user and redirecting back, but CORS will refuse to send the cookie along. :/
I've tried doing the CORS request via ajax, as well as via an iframe.