From 95a7b698365086d753ec54b7bc1aa0b709f0ef05 Mon Sep 17 00:00:00 2001 From: Goodbytes Date: Mon, 12 Aug 2019 22:01:00 +0100 Subject: [PATCH] Use site_url() to account for browser SSL --- wp-graphiql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-graphiql.php b/wp-graphiql.php index 8ecd6ca..7b21be7 100644 --- a/wp-graphiql.php +++ b/wp-graphiql.php @@ -121,7 +121,7 @@ public function enqueue_react_app() { 'wpGraphiQLSettings', array( 'nonce' => wp_create_nonce( 'wp_rest' ), - 'graphqlEndpoint' => trailingslashit( get_bloginfo( 'url' ) ) . 'index.php?' . \WPGraphQL\Router::$route, + 'graphqlEndpoint' => trailingslashit( site_url() ) . 'index.php?' . \WPGraphQL\Router::$route, ) );