Skip to content

Commit

Permalink
fix: ensure request headers are properly passed
Browse files Browse the repository at this point in the history
Closes #550
  • Loading branch information
Diizzayy committed Nov 13, 2024
1 parent deac564 commit 6783bc5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ export default defineNuxtPlugin(() => {
}

if (reqOpts?.token) { delete reqOpts.token }
return defu(reqOpts, req)
return defu(reqOpts, req, {
headers: {
'Content-Type': 'application/json',
Accept: 'application/graphql-response+json, application/json'
}
})
},
...v?.fetchOptions
})
Expand Down

0 comments on commit 6783bc5

Please sign in to comment.