Cookie session don't seem to work for iOS 15 when ...
# support-questions-legacy
s
Cookie session don't seem to work for iOS 15 when API is on subdomain. As you can see the signin works and responds with the cookie but the immediate refresh token requests simply fails
It works on desktop and on Android
r
Are you using safari browser?
Does this work on safari desktop?
Have you set cookies sameSite to none explicitly on the backend?
s
no it is automatically set
but it actually was my fault. the frontend is on another domain while the backend is not on the same domain. It was a recent change i didn't recognize
I tried now by setting the same domain for frontend and now it works
r
Haha yea. I thought so
Cool!
s
Safari does not allow inter domain cookies
While all the others do ๐Ÿ™‚
r
Yup. It doesnโ€™t
Even with sameSite noneโ€ฆ which is the whole point of that setting. But well.. apple things
s
yeah
always their own soup
๐Ÿ™‚
r
You can consider proxying the request via a sub domain that matches the websiteDomain
Or you can switch to not using cookies. We have a demo app that shows you how you can do that.
s
It's actually fine its only staging right now and everthing will be moved to the same domain later
Where can i find this app not using cookies?
Thank you for helping ๐Ÿ‘
Happy to help ๐Ÿ™‚
s
Ah okay local storage
FYI switching off "Prevent Cross-Site Tracking" in the Safari browser solves the problem, in case you want to test on the IPhone in such cases