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, ) );