nuxt-modules / apollo

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

fix(plugin): take token from cookie even if proxyCookies is disabled #618

Closed iamandrewluca closed 4 months ago

iamandrewluca commented 6 months ago

At first glance, you may think that proxyCookies should only enable/disable if the cookies from the client should be sent to the GraphQL server and should have nothing to do with the Authorization header, but in reality proxyCookies will also make to completely also strip away the Authorization header which comes from the token variable.

At the moment, we fixed this using a patch in node_modules.

netlify[bot] commented 6 months ago

Deploy Preview for apollo-module canceled.

Name Link
Latest commit ec5d2679ce582bbc46d76d5739275b182dd76c94
Latest deploy log https://app.netlify.com/sites/apollo-module/deploys/663b9e330f82ba00089847d2
iamandrewluca commented 5 months ago

Is anyone available to look into this PR?

cc @Diizzayy