Vendure Auth Token Not Displayed in Browser But Available in Postman #3480
Unanswered
rajendranali-talentica
asked this question in
Q&A
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 everyone! 👋
I'm currently working on a Vendure-based project and have encountered an issue related to authentication.
When I perform a login mutation in Postman, I can see the
Set-Cookie
header and thesessionToken
is properly returned and stored. However, when I try the same login mutation from the browser (GraphQL Playground or from a frontend app), the token is not returned or stored, and I remain unauthenticated for further requests.What I’ve tried so far:
Confirmed login mutation works in Postman:
Checked DevTools > Network in browser:
Set-Cookie
header is not present in the response.Set
credentials: 'include'
in frontend fetch and Apollo client config:Updated
vendure-config.ts
with CORS settings:Questions:
SameSite
or browser cookie policies affecting this?Any help or suggestions from the community would be greatly appreciated 🙏
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions