ripe-shampoo-28033
10/03/2022, 11:34 AMCy.Intercept
works under the hood please? I've been reading the docs and I don't understand how it is possible for Cypress to change it's url to match the origin of the application:
> After the first cy.visit() command is issued in a test, Cypress changes its URL to match the origin of your remote application, thereby solving the first major hurdle of same-origin policy. Your application's code executes the same as it does outside of Cypress, and everything works as expected.
https://docs.cypress.io/guides/guides/web-security#Limitations
In my example, I am running cypress tests locally but pointed at a dev environment URL with the Intercept method bypassing my login, but unsure how this can be working / bypass CORS? Much appreciated