-
Notifications
You must be signed in to change notification settings - Fork 2k
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
apollo-server: Disable "x-powered-by" header #3821
apollo-server: Disable "x-powered-by" header #3821
Conversation
Just curious if this should be more discussed per my comment in #3812 instead of just rushing in a root level property. More specifically, would it be useful to be able to both add and remove headers through something like this instead of just disabling headers. Maybe something like this?
|
I don't think a top-level attribute to the While it's not currently the case, the I do think that the ability to add headers is a great option for the transport, but that seems it should be accomplished in a transport-specific way on the HTTP transport which #3576 introduced and that is part of the larger #3184 work in #2360. While it might be tempting to open a PR to that PR, I wouldn't suggest that just yet until we stabilize some of the 3.0 work, and most notably that transport. How about changing this PR to resolve exactly what #3812 reported? Specifically, that means disabling the default Express header when using apollo-server/packages/apollo-server/src/index.ts Lines 98 to 99 in 30b3066
Thoguhts? |
Guys, thanks to review this PR 😄 It ended up being my fault to pay more attention to the proposed alternative than to actually solve the specific problem, even more, focused only on one server, in this case, Express. I will make the necessary changes to be able to deliver the correction of the proposed problem... 😉 |
980610a
to
9ad6680
Compare
bd9b435
to
4a94639
Compare
x-powered-by
) on Express server - Consider providing an option to disable the "x-powered-by" header #3812