Files
cypress/packages/proxy
Tyler Biethman 5a30e76819 fix: Prepare for Chrome's update for immutable document.domain (#20405)
* Setting response header for origin-agent-cluster for runner, iframes, and proxied requests that have domain injection

* Adding comments around header injection

* Adding unit tests
2022-03-04 10:46:23 -06: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 workspace @packages/proxy build-prod

Testing

Tests are located in ./test

To run tests:

yarn workspace @packages/proxy test

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