mswjs / msw

Industry standard API mocking for JavaScript.
https://mswjs.io
MIT License
15.97k stars 519 forks source link

test: add isolated response test for iframes #2205

Closed kettanaito closed 4 months ago

kettanaito commented 4 months ago

Adds an automated test for the isolated response scenario when using multiple iframes on the page.

How does this work?

Each iframe becomes the outgoing request's referrer. If the iframe provides a check in the request handlers to ignore a matching request if it has a referrer different from the current iframe's location.href, it will allow two iframes to receive different responses to the same request.

kettanaito commented 4 months ago

Released: v2.3.2 🎉

This has been released in v2.3.2!

Make sure to always update to the latest version (npm i msw@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.