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

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

Parameters


headers optional Record<string, string>

key value headers object