aerogear / graphql-link

graphql-link is a GraphQL server that composes other GraphQL or OpenAPI endpoints
https://aerogear.github.io/graphql-link
Other
38 stars 8 forks source link

Add CORS setup #39

Open wtrocki opened 4 years ago

wtrocki commented 4 years ago

It seems that docker image provided is not working. Some issues we saw when gw is containerized.

wtrocki commented 4 years ago

Could not figure out how to add cors stuff easily.

lmnzx commented 3 years ago

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.

wtrocki commented 3 years ago

@snxk Amazing choice!

@chirino let us know if you are against it. If not we going to add that

adityaofficial10 commented 3 years ago

Hey @wtrocki ! Can I work on fixing this issue?

wtrocki commented 3 years ago

Anyone could work on this. Let's do quick fix first - setup hardcoded header - which is one liner. Then we can extract config

chirino commented 3 years ago

Sounds good to me.