-
Notifications
You must be signed in to change notification settings - Fork 5.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
Fetch allow modifying Host header #16840
Comments
I am also facing similar issues when trying to reach a service on kubernetes, is there any way to set this header on Deno? |
This was referenced Jun 27, 2023
bartlomieju
pushed a commit
that referenced
this issue
Jul 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently it is impossible to modify the Host header when calling
fetch()
.This is not a duplicate of #11017 , because that asked to disallow the header to be modified, while I am requesting for a way to allow modifying it.
It is needed for us to communicate with an internal system that only ever expects the
Host
header to be an external-facing domain. (a reverse proxy or changing the machines/etc/hosts
seems a bit overkill)It could be part of
Deno.createHttpClient
({allowCustomHost: true}
or similar) as described in #6868 (comment)The text was updated successfully, but these errors were encountered: