I would like to be able to set the Host header for a redirect…
Such that for example:
[[redirects]]
from = "/*"
to = "https://destination.com/:splat"
status = 200
headers = {
"Host" = "original.com",
"X-Forwarded-Host" = "original.com"
}
Will make it so the “Host” header is “original.com.” I believe this is currently unsupported https://answers.netlify.com/t/can-the-host-header-be-defined-on-a-redirect/19241/8
Or if that is not possible my real hope is to make it so the Host header sent along is set to “original.com” which is the original domain… so maybe for some sort of configuration flag like…
[[redirects]]
from = "/*"
to = "https://destination.com/:splat"
origin_host = true
But with a better name than origin_host
Thanks for your consideration