Cypress: Add blacklisting of requests made to specific hosts

Created on 2 Mar 2017  路  6Comments  路  Source: cypress-io/cypress

Would be nice to stop requests made to other domains than my own, for example scripts/css loaded from other CDNs.

feature

Most helpful comment

Released in 1.2.0.

All 6 comments

I was also looking for something like this! Eg, a way to not send requests to certain domains when running tests (eg NewRelic / Intercom)

Same. Would be nice to have this feature.

Requests are blocked with 503 response code.

screen shot 2017-12-14 at 2 28 49 pm

The response headers also include the rule that caused the blockage.

screen shot 2017-12-14 at 2 28 26 pm

Released in 1.2.0.

馃憦

Was this page helpful?
0 / 5 - 0 ratings