Skip to content

Commit

Permalink
fix: fix apollo headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Klesse committed Jun 13, 2024
1 parent 72cfe59 commit 2f8c898
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runtime/plugins/apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@ export default defineNuxtPlugin({
}

if (process.client) {
console.log('process.client', cookies);
cookies = (cookies.length ? cookies + '; ' : '') + document.cookie;
}

console.log('cookies', cookies);

return {
headers: {
...headers,
Expand Down

0 comments on commit 2f8c898

Please sign in to comment.