What I tried to do is to embed an iframe into a website and was faced with Content Security Policy. I know this question was asked before, but I couldn’t find any working solution.
Error message: Content security policy: 'x-frame-options' will affect because of 'frame-ancestors' directive.
What I tried so far, using the Apache module “mod_headers”:
- Header unset X-Frame-Options Header unset Content-Security-Policy
- Header always set Content-Security-Policy "frame-ancestors 'self';"
- Header always set X-Frame-Options "SAMEORIGIN"
- Header always setX-Frame-Options "ALLOW-FROM https://mydomain”</li>
Any idea to get iframes embed, though Content security policy?