Created
August 31, 2020 18:11
-
-
Save jasonbahl/efbc50c79da7948c65ead127b403b08e to your computer and use it in GitHub Desktop.
This snippet outputs the $_SERVER superglobal so we can see if the Authorization token is being passed to the server or not.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'init', function() { | |
if ( is_graphql_http_request() ) { | |
wp_send_json( [ 'server' => $_SERVER ] ); | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment