I need to send the same session cookie to my own site i.e. use same-site as well as to my backend i.e. cross-site and am unable to find a way to do this #12549
Unanswered
thesidshah
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, the closest issue I have found to my problem is #4327 where they tackle subdomains, but my issue is slightly different in the sense that I want to use both - same-site and cross-site cookie headers.
To illustrate:
current setup:
My backend is hosted at www.backendOfMyProject.com and front end is at www.frontendOfMyProject.com and I use the same session token for frontend and backend - one that is generated by nextauth
requirement:
session token is needed to authenticate requests within the site for protected pages as well as to interact with the backend.
issue:
samesite:'lax' or samesite:'none' but not both for session token.
Beta Was this translation helpful? Give feedback.
All reactions