Cypress and clickjacking (iframe) #9615
Replies: 2 comments 2 replies
-
Already found some way: but, after filling the fields and during send the form of registration, page state return to default. |
Beta Was this translation helpful? Give feedback.
-
Cypress runs your application in an iframe, which is exactly what clickjacking code tries to prevent. So your application is preventing itself from running within Cypress. We try to look for clickjacking code and remove it so that app run fine in Cypress: https://on.cypress.io/configuration#modifyObstructiveCode The best way around this would be to remove the clickjack code when you know you're running within Cypress: https://on.cypress.io/using-cypress-faq#Is-there-any-way-to-detect-if-my-app-is-running-under-Cypress |
Beta Was this translation helpful? Give feedback.
-
Hi to all.
Now i have a problem with my cypress project.
Lately our developers has added clickjacking to some pages of our project and now my tests cannot work.
If some our pages opened in iframe, page say that user must "Follow to login page." and etc.
https://prnt.sc/vztppq
how can i fix my tests for work with some our pages of project (signup, login, dashboard and etc)
Thanks for help
Beta Was this translation helpful? Give feedback.
All reactions