nuxt-modules / apollo

Nuxt.js module to use Vue-Apollo. The Apollo integration for GraphQL.
https://apollo.nuxtjs.org
MIT License
929 stars 195 forks source link

The "apollo:default.token" cookie does not have the "SameSite" attribute with a valid value. #486

Closed hermesalvesbr closed 4 months ago

hermesalvesbr commented 1 year ago

Environment


Describe the bug

cookie "apollo:default.token" does not have "SameSite" attribute with valid value. Soon, cookies without "SameSite" attribute or with invalid value will be treated as "Lax". It means that the cookie will no longer be sent in third-party contexts. If your application depends on the availability of this cookie in such contexts, add the "SameSite=None" attribute. Learn more about the "SameSite" attribute at https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite

Expected behaviour

I expected the documentation to teach a way to put more attributes in the cookie.

Reproduction

No response

Additional context

No response

Logs

No response