Skip to content

setHeaders()

Use nhost.storage.setHeaders to set global headers to be sent for all subsequent storage requests.

nhost.storage.setHeaders({
'x-hasura-role': 'admin'
})

headers optional Record<string, string>

key value headers object