Why is changeOrigin: true
required when target is https?
#847
Unanswered
ChristopherZhong
asked this question in
Q&A
Replies: 0 comments
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.
-
Based on documentation
changeOrigin
is needed for name-based virtual hosted sites, so I'm confused as to why it is required when the target is to a https site? There is another related discussion #557 but it does not provide the answer to the question that I'm asking.Take the following example, which is a proxy to 'https://google.com'.
This results in the following error.
However, after adding
changeOrigin: true
(as shown below), it works as expected.Beta Was this translation helpful? Give feedback.
All reactions