Documentation home page
Search...
⌘K
Ask AI
Support
Dashboard
Dashboard
Search...
Navigation
GraphQL
unsetHeaders()
Welcome
Getting Started
Products
Platform
Reference
Blog
Overview
Backend Services
Authentication
Storage
AI
Client Libraries
Javascript
nhost-js
Auth
Storage
GraphQL
GraphQL
getUrl()
setAccessToken()
request()
setHeaders()
unsetHeaders()
getHeaders()
Functions
React
Next.js
Vue
React Native
CLI
Commands
GraphQL
unsetHeaders()
Use
nhost.graphql.unsetHeaders
to remove global headers sent with all requests, except for the role header to preserve the role set by ‘setRole’ method.
Copy
Ask AI
nhost
.
graphql
.
unsetHeaders
()
Was this page helpful?
Yes
No
Suggest edits
Raise issue
setHeaders()
getHeaders()
Assistant
Responses are generated using AI and may contain mistakes.