Files
cypress/packages/proxy
Alessandro c80fe37ca4 Strip document-domain directive from feature-policy header when… (#7007)
* 6480: Add feature-policy to problematic headers

* 6480: Create new middleware

* 6480: Fix code placement

* 6480: Add integration test

* 6480: Remove header when no directives left
2020-04-20 09:53:24 -04:00
..

proxy

This package contains the code for Cypress's HTTP interception proxy.

HTTP interception

./lib/http contains the code that intercepts HTTP requests. The bulk of the proxy's behavior is in three files:

Building

Note: you should not ever need to build the .js files manually. @packages/ts provides require-time transpilation when in development.

yarn lerna run build-prod --scope @packages/proxy --stream

Testing

Tests are located in ./test

To run tests:

yarn lerna run test --scope @packages/proxy --stream

Additionally, the server package contains tests that use the proxy.