steventran619 / tbmhp

Remake of the Thomas Batterman Mental Health Project website.
https://main.d2g07unwlxox5e.amplifyapp.com/
0 stars 0 forks source link

Unable to stay logged in / misuse of SameSite attribute #24

Open steventran619 opened 9 months ago

steventran619 commented 9 months ago

Upon logging in, immediately logs out on Firefox, Chrome, Internet Explorer on the deployed site. I'm getting this error: "Some cookies are misusing the recommended “SameSite“ attribute" with the following explanation.

Cookie “token” does not have a proper “SameSite” attribute value. Soon, cookies without the “SameSite” attribute or with an invalid value will be treated as “Lax”. This means that the cookie will no longer be sent in third-party contexts. If your application depends on this cookie being available in such contexts, please add the “SameSite=None“ attribute to it. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite

Some references

steventran619 commented 9 months ago

Without secure/sameSite added

Screen Recording 2023-11-29 at 1 07 40 PM

With secure/sameSite added

Screen Recording 2023-11-29 at 1 10 09 PM