-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gateway pass header to each grapql service #270
Comments
The config you generate should look similar to this: |
Please reopen in case you have additional questions. |
Hi, I have took a look on different issue posted here in Github #115 #128 #270 about passing request headers to new request made by the engine (Client - Gateway -> Gateway - Service) but I couldn't find out how, I have tried for example the following if err = g.engine.Execute(r.Context(), &gqlRequest, &resultWriter, graphql.WithAdditionalHttpHeaders(r.Header)); err != nil {
g.log.Error("engine.Execute", log.Error(err))
w.WriteHeader(http.StatusInternalServerError)
return
} but each time I fail the other service doesn't have access to the request headers. Can you please send us an example of code shows how to pass those headers or blog or even adding above of your example thanks in advance |
Stuck with the same issue. Can't understand how to pass headers using WithAdditionalHttpHeaders. thanks |
How do you this with subscriptions? Considering that custom headers in a ws connection usually comes in the form of an initPayload? |
I`m testing gateway example and I don´t know how pass header recived by gateway to each service.
There are some documentation about that?
The text was updated successfully, but these errors were encountered: