mirror of
https://github.com/graphql-hive/console
synced 2026-05-24 09:38:26 +00:00
Update disable-introspection.mdx (#6040)
Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
This commit is contained in:
parent
c33aad09ea
commit
73342267e8
1 changed files with 3 additions and 1 deletions
|
|
@ -38,7 +38,9 @@ import { defineConfig } from '@graphql-hive/gateway'
|
|||
|
||||
export const gatewayConfig = defineConfig({
|
||||
disableIntrospection: {
|
||||
isDisabled: request => request.headers.get('x-allow-introspection') !== 'secret-access-key'
|
||||
disableIf: ({ context }) => {
|
||||
return context.request.headers.get('x-allow-introspection') !== 'secret-access-key'
|
||||
}
|
||||
}
|
||||
})
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue