Back

Cookie rejected because of "SameSite=None"

  • 1
  • Self Hosted
  • Auth
  • Web
kilian
9 Oct, 2024, 19:15

I'm an issue while trying to log a user in with the fonction account.createEmailPasswordSession I get this message when sending good email and password : Cookie “a_session_{projectID}” rejected because it has the “SameSite=None” attribute but is missing the “secure” attribute.

`const login = async (email, password) => { const session = await account.createEmailPasswordSession(email, password); console.log(session);

TypeScript
const reqUser = await account.get()

setLoggedInUser(reqUser);

};`

Can someone have a idea on how to fix the issue i'm facing ? Thanks

TL;DR
Issue with self-hosted appwrite causing cookie rejection due to "SameSite=None" attribute missing "secure" attribute. Solution: Add "secure" attribute to the cookies to resolve the problem.
kilian
9 Oct, 2024, 19:25

I thinks its a misconfiguration of my self-hosted appwrite, tested with cloud hosting and no problem. What do i need to make it work ?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more