Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Graphiql behind a proxy is not working #117

Closed
ccamel opened this issue Aug 31, 2018 · 1 comment
Closed

Graphiql behind a proxy is not working #117

ccamel opened this issue Aug 31, 2018 · 1 comment

Comments

@ccamel
Copy link

ccamel commented Aug 31, 2018

As a consequence of #83, graphiql seems to be no more able to access the vendor resources nor the subscriptions when behind a proxy.

For instance, one of our service is configured as such:

graphiql:
      mapping: /graphiql
      endpoint: /my-service/graphql
      enabled: true

The service is deployed through the proxy with the route http://foo.bar/my-service/. So it exposes the following endpoints:

  • graphiql: http://foo.bar/my-service/graphiql
  • graphql: http://foo.bar/my-service/graphql
  • subscriptions: http://foo.bar/my-service/subscriptions

In that case, the resources retrieved by the browser are:

  • ✅ 200: http://foo.bar/my-service/graphiql
  • ❌ 404: http://foo.bar/vendor/es6-promise.auto.min.js
  • ❌ 404: http://foo.bar/vendor/fetch.min.js
  • ❌ 404: http://foo.bar/vendor/react.min.js
  • ...
  • ❌ 404: http://foo.bar/subscriptions
amimart pushed a commit to amimart/graphql-spring-boot that referenced this issue Aug 31, 2018
@jackie1in
Copy link

please release quickly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants