Skip to content

Safari and Chrome incognito Set Cookie issue #401

Answered by jmikrut
vstarush asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @vstarush

What domain(s) are you using for your Payload API and your frontend website API?

It looks like you are specifying Secure on your cookie, but using an insecure domain (http://localhost:3000). This may cause the cookie rejection.

Also, another thing to check into would be how browsers have started to handle third-party cookies. By default, third-party cookies are now rejected across the board - which means that if you have your API and your website running on separate domains, you won't be able to use the cookie as you're intending to. I'm not yet sure that this is the issue you're experiencing though.

First, I'd check the Secure setting. Maybe only enable Secure in producti…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@vstarush
Comment options

@ayusshrathore
Comment options

@ayusshrathore
Comment options

Answer selected by vstarush
Comment options

You must be logged in to vote
3 replies
@ayusshrathore
Comment options

@jmikrut
Comment options

@ayusshrathore
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants