graphql_access_control_allow_headers
apply_filters( 'graphql_access_control_allow_headers', [ 'Authorization', 'Content-Type', // Allows cross-origin clients to send request-level preview context via the // `X-GraphQL-Preview` header, the primary preview transport (`extensions.preview` // in the request body is the fallback). See WPGraphQL\Request::get_preview_input(). 'X-GraphQL-Preview', ] );
Filtered list of access control headers.
- Type: filter
- Group: Request Lifecycle
- Since: 0.0.5
- Source File:
plugins/wp-graphql/src/Router.php
Parameters
$access_control_headers(string[]): Array of headers to allow.
Source
apply_filters(
'graphql_access_control_allow_headers',
[
'Authorization',
'Content-Type',
// Allows cross-origin clients to send request-level preview context via the
// `X-GraphQL-Preview` header, the primary preview transport (`extensions.preview`
// in the request body is the fallback). See WPGraphQL\Request::get_preview_input().
'X-GraphQL-Preview',
]
);
Related
Router::get_response_headers()inplugins/wp-graphql/src/Router.php:310