Replies: 1 comment
-
I used a seperate proxy to change the host header and it solved this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Being able to redirect to a server preserving original Host.
Non-Goals
No response
Background
I have a Shopify Theme frontend that I currently migrate to Next.JS. I use the rewrite/fallback feature to di this. To preserve the way shopify works today, I need to keep telling him that it is served on my domain (barooders.com), but really it is my next application that is on barooders.com. To do the redirect, I therefore need to bypass the DNS, use the IP address of shopify and send him barooders.com as a Host header. This does not work because the changeOrigin is hardcoded to true in the proxy configuration.
Proposal
I propose to add an experimental config as there is for the proxyTimeout :
4e3a0ef
Beta Was this translation helpful? Give feedback.
All reactions