Can't get cy.intercept to add custom headers #14989
Unanswered
mzedeler
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 am using Cypress 6.4, and like the documentation states, I am trying to add headers to all outgoing requests (in this case, to switch off caching), and it doesn't work. Before any other calls to
cy.intecept
, I do this:If I look in the network tab, the requests are not modified. Also, I can see that the request rewriting block above is actually called on every outgoing request.
Beta Was this translation helpful? Give feedback.
All reactions