Can Cypress customize Host header by force?
#24819
Unanswered
gyh2016
asked this question in
Questions and Help
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.
-
I have read the explanation about the two sources of the
Hostheader(actually only one from req.url) in #14920.But in my test case, I really need to modify the
Hostheader to a different host. For example:When visit aaa.com, it only works when the
Hostheader is equal to "bbb.com".curlcan help me do that. It supports setHostheader by-Hparameter such ascurl "aaa.com" -H "host:bbb.com".Does Cypress support to customize
Hostheader by force like this?Beta Was this translation helpful? Give feedback.
All reactions