diff --git a/packages/web/docs/src/pages/docs/gateway/other-features/security/disable-introspection.mdx b/packages/web/docs/src/pages/docs/gateway/other-features/security/disable-introspection.mdx index 20150eb4b..a06ddb33e 100644 --- a/packages/web/docs/src/pages/docs/gateway/other-features/security/disable-introspection.mdx +++ b/packages/web/docs/src/pages/docs/gateway/other-features/security/disable-introspection.mdx @@ -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' + } } }) ```