Hi, cookie based auth is not working on desktop Sa...
# support-questions-legacy
t
Hi, cookie based auth is not working on desktop Safari, is that expected?
The signin request works, and we see the cookie being sent in subsequent requests, but they fail to authenticate
It's the case that our api domain and website domain are different, is the solution to switch to header based auth? https://github.com/supertokens/supertokens-core/issues/280
r
yup. You need to switch to using header based auth
since safari doesn't allow cross site cookies, even with sameSite as
none
t
OK thanks, are there any downsides from using the header based auth? I see it's not the recommended method
r
it's less secure since the access and refresh tokens are exposed to frontend JS
but we do refresh token rotation, so it's such a big issue anyway
t
OK thanks!
13 Views