token doesn't store in cookies if sameSite
set to none
#2092
Replies: 6 comments 1 reply
-
Could you explain your usecase? This seems like a bad idea. |
Beta Was this translation helpful? Give feedback.
-
Not sure what you meant by use case. Basically what I do is change cookies name and set |
Beta Was this translation helpful? Give feedback.
-
I meant what's the reason for these changes? From the few lines of code and explanation you provided, the cookie changes seem unnecessary at all. Remember that the cookie settings are for advanced usecases. What problem are you trying to solve here? From the docs:
|
Beta Was this translation helpful? Give feedback.
-
Oh! I was trying set Anyway, I want change the cookies name in order to match with backend token, which I need to update And the reason |
Beta Was this translation helpful? Give feedback.
-
We are not going to recommend httponly false. (it is set to true by default) See: I am still not able to pinpoint your exact usecase, but I don't think this issue derives from a bug in our implementation. I don't understand why you would need to change the name to match your backend. |
Beta Was this translation helpful? Give feedback.
-
@balazsorban44 I want to use authentication locally(backend(localhost:8080) and frontend (localhost:3000) domains are different), that is my use case for setting |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description 🐜
I tried to change cookies and set
httpOnly
tofalse
.I tried to login with Facebook but the token doesn't store in cookies. If I set
sameSite
to other value likelax
then it will store the token in cookies.Beta Was this translation helpful? Give feedback.
All reactions