Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
Use site_url() to account for browser SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
Goodbytes committed Aug 12, 2019
1 parent 0697fbd commit 95a7b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-graphiql.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
);

Expand Down

0 comments on commit 95a7b69

Please sign in to comment.