Files
cypress/packages/proxy
Jennifer Shehane a0b2d1e912 fix: Add existential operators to properties before calling split in processBrowserPreRequest (#28952)
* fix: Add existential operators to properties before calling split

* empty commit

* changelog entry

* Add note about regression

* remove duplicate dep in changelog

* Add link to issue

* Update packages/proxy/lib/http/util/service-worker-manager.ts

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* Update packages/proxy/lib/http/util/service-worker-manager.ts

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

---------

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2024-02-15 13:29:40 -05: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.

Debug Logs

High level logs are available in the DEBUG=cypress:proxy:* namespace.

Detailed per-request logs are available in DEBUG=cypress-verbose:proxy:http.