nuxt-modules / apollo

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

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

Open iamandrewluca opened 1 month ago

iamandrewluca commented 1 month 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 1 month 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 2 weeks ago

Is anyone available to look into this PR?

cc @Diizzayy