You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
While testing router, I ran into issues with my app and disallowed headers.
Eventually, I traced it down to the name option on the ApolloClient constructor which is a part of the Client Awareness functionality that sets apollographql-client-name header on all requests.
Once I added that header to the allowed headers CORS configuration, it worked like a charm.
Describe the solution you'd like
It would be nice if these two headers were a part of the default Allow Headers for the CORS configuration.
Describe alternatives you've considered
An alternative is to have folks define those allowed headers in the router config. This could be accomplished, in part, with documentation about this.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Thanks for opening this! I imagine this could be another configuration "knob" that could be in a similar place as where the config for #373 ends up. I've tacked this on as a "todo" in #66 for consideration, too.
abernix
changed the title
Native Support for Apollo Client Awareness headers
CORS support for Apollo Client Awareness headers
Feb 17, 2022
Is your feature request related to a problem? Please describe.
While testing
router
, I ran into issues with my app and disallowed headers.Eventually, I traced it down to the
name
option on theApolloClient
constructor which is a part of the Client Awareness functionality that setsapollographql-client-name
header on all requests.Once I added that header to the allowed headers CORS configuration, it worked like a charm.
Describe the solution you'd like
It would be nice if these two headers were a part of the default Allow Headers for the CORS configuration.
Describe alternatives you've considered
An alternative is to have folks define those allowed headers in the
router
config. This could be accomplished, in part, with documentation about this.Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: