This snippet outputs the $_SERVER
superglobal so we can see if the Authorization token is being passed to the server or not.
add_action( 'init', function() {
if ( is_graphql_http_request() ) {
wp_send_json( [ 'server' => $_SERVER ] );
}
} );
Free open-source WordPress plugin that turns any WordPress site into a GraphQL API
This snippet outputs the $_SERVER
superglobal so we can see if the Authorization token is being passed to the server or not.
add_action( 'init', function() {
if ( is_graphql_http_request() ) {
wp_send_json( [ 'server' => $_SERVER ] );
}
} );