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
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:
Tc-001
changed the title
Allow modifying Host header
Fetch allow modifying Host header
Nov 26, 2022
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: