This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Add CORS setup #39
Labels
Comments
Could not figure out how to add cors stuff easily. |
Since this project uses the "net/http", I think we have to use an external library to implement cors, https://github.com/rs/cors seems to a great library for this purpose. |
This comment has been minimized.
This comment has been minimized.
Anyone could work on this. Let's do quick fix first - setup hardcoded header - which is one liner. Then we can extract config |
Sounds good to me. |
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It seems that docker image provided is not working. Some issues we saw when gw is containerized.
Cors are not enabled, so impossible to hook in OVP queries into it.
I need to change the network interface to 0.0.0.0 instead of localhost, to get me to work expose the 8080 and use GraphiQL IDE it from my browser.
Somehow I cannot proxy requests deployed. This happens also in my machine locally as I am seeing these warning messages when starting gw:
docker run -it --rm -p 4000:8080 quay.io/graphql/ovp-gateway
2020/10/13 15:34:18 loaded previously stored schema: upstreams/gateway.graphql
2020/10/13 15:34:18 loaded previously stored schema: upstreams/serverless1.graphql
2020/10/13 15:34:18 The upstream does not have any query entry points
2020/10/13 15:34:18 The upstream does not have any query entry points
2020/10/13 15:34:18 The upstream does not have any mutation entry points
2020/10/13 15:34:18 The upstream does not have any subscription entry points
2020/10/13 15:34:18 GraphQL endpoint is running at http://[::]:8080/graphql
2020/10/13 15:34:18 Gateway GraphQL IDE is running at http://[::]:8080/graphiql
The text was updated successfully, but these errors were encountered: