-
i am setting up google oauth using svelte for frontend with same as usual: however cookies don't pass from and i suspect it has to do with the fact that when i print out the headers on the request to i'm guessing host is supposed to be these are the cookies i use:
and the headers i set:
anyone have advice? because it won't pass the callback validation if the url state doesn't match the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Are you hosting |
Beta Was this translation helpful? Give feedback.
-
thanks for the help and sorry about the confusion - i was not aware that i also made the following change |
Beta Was this translation helpful? Give feedback.
thanks for the help and sorry about the confusion - i was not aware that
sameSite
needs to beLax
in order for google to return cookies to the callback.i also made the following change
"Access-Control-Allow-Origin": "https://nidnad.com, https://accounts.google.com",
and it works