Next.js Discord

Discord Forum

Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute

Unanswered
useless posted this in #help-forum
Open in Discord
i am getting this error, how can i resolve this
Because a cookie’s SameSite attribute was not set or is invalid, it defaults to SameSite=Lax, which prevents the cookie from being sent in a cross-site request. This behavior protects user data from accidentally leaking to third parties and cross-site request forgery.
Resolve this issue by updating the attributes of the cookie:
Specify SameSite=None and Secure if the cookie should be sent in cross-site requests. This enables third-party use.
Specify SameSite=Strict or SameSite=Lax if the cookie should not be sent in cross-site requests.

some of the urls i see are
.youtube.com
.google.com

how can i resolve this, should i add something to my next.config ?

1 Reply

im not sure exactly what you are talking about.
can u share the exact error msg and place you get. chrome dev tool?