1

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'

2 Answers2

1

add "chromeWebSecurity": true if it is marked false in your cypress.json file

rackhwan
  • 265
  • 5
  • 14
0

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.

Alireza
  • 10,237
  • 6
  • 43
  • 59