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

Commit

Permalink
Merge pull request #15 from mforcer/master
Browse files Browse the repository at this point in the history
Use site_url() to account for browser SSL
  • Loading branch information
jasonbahl authored Aug 12, 2019
2 parents 0697fbd + 95a7b69 commit ca78e59
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 ca78e59

Please sign in to comment.