diff --git a/gql.go b/gql.go index e9b85b4..7902d29 100644 --- a/gql.go +++ b/gql.go @@ -80,7 +80,7 @@ func GraphiQLHandler() func(http.ResponseWriter, *http.Request) { root.render( React.createElement(GraphiQL, { fetcher: GraphiQL.createFetcher({ - url: 'http://%s/gql', + url: '/gql', }), defaultEditorToolsVisibility: true, }), @@ -88,7 +88,7 @@ func GraphiQLHandler() func(http.ResponseWriter, *http.Request) { - `, r.Host) + `) w.Header().Set("Content-Type", "text/html; charset=utf-8") w.WriteHeader(http.StatusOK)