diff --git a/CHANGELOG.md b/CHANGELOG.md index 56f0ce5f..cfa59a02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog ### VNEXT - +* Fix graphiql's client to use parameter endpointURL instead of hardcoded. ### v0.7.0 diff --git a/packages/graphql-server-module-graphiql/src/renderGraphiQL.ts b/packages/graphql-server-module-graphiql/src/renderGraphiQL.ts index 06ed2f64..e804823a 100644 --- a/packages/graphql-server-module-graphiql/src/renderGraphiQL.ts +++ b/packages/graphql-server-module-graphiql/src/renderGraphiQL.ts @@ -121,7 +121,7 @@ export function renderGraphiQL(data: GraphiQLData): string { // Defines a GraphQL fetcher using the fetch API. function graphQLFetcher(graphQLParams) { - return fetch('/graphql', { + return fetch(fetchURL, { method: 'post', headers: { 'Accept': 'application/json',