Explore Bato Web Agency Webflow Certified Partner Profile Explore Bato Web Agency Webflow Certified Partner Profile

CSP error: Refused to frame this page because of frame-ancestors — why?

Illustration without a description Illustration without a description

The response for the framed page limits which origins can embed it. Open that response’s headers and compare frame-ancestors with the embedding page’s origin. Changing the parent’s policy cannot grant permission that the framed response withholds.

 

If you control the framed page and want the embed, list the trusted parent origins on its response. The policy below permits same-origin framing and the portal. Use the portal’s deployed origin.

 

If the framed page sits inside nested frames, check the full ancestor chain. Test from the trusted portal and from a parent outside the policy so you can see both the allowed and blocked cases.

 

Content-Security-Policy: frame-ancestors 'self' https://portal.example.com

 

Load the embed through its real ancestor chain and confirm that a separate untrusted parent still cannot frame it.