my use case: Testing a third party widget on a website.
For that, we load the widget on the third party as a <script src='https://cdn.com/widget.js'/> tag. What I'd like to do is intercept that JS request and replace https://cdn.com/widget.js with https://localhost:3000/dist/widget.js.
This is so that we can run the cypress tests with the local version of the widget (run in CI on a PR), and make sure that the PR doesn't break the e2e tests, before merging it.