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
Host
header(actually only one from req.url) in #14920.But in my test case, I really need to modify the
Host
header to a different host. For example:When visit aaa.com, it only works when the
Host
header is equal to "bbb.com".curl
can help me do that. It supports setHost
header by-H
parameter such ascurl "aaa.com" -H "host:bbb.com"
.Does Cypress support to customize
Host
header by force like this?Beta Was this translation helpful? Give feedback.
All reactions