user10251019
user10251019

Reputation:

After clicking a button Page is loaded but displaying white blank screen (refused to display in a frame) - Cypress

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

Answers (2)

rackhwan
rackhwan

Reputation: 285

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

Upvotes: 2

Alireza
Alireza

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

Related Questions