Reputation:
I am in a situation where the page is loaded after clicking a button, but displaying a white blank screen.
Console Log error i am getting an error
Refused to display '' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'
Upvotes: 1
Views: 2023
Reputation: 285
add "chromeWebSecurity": true
if it is marked false in your cypress.json
file
Upvotes: 2
Reputation: 10476
You can turn off Content Security Policy in Chrome using the extension Disable Content-Security-Policy
Then you load the extension in Chrome as explained in https://docs.cypress.io/guides/tooling/plugins-guide.html.
Upvotes: 0