Hello
I would like to embed an iFrame on my Webflow page using embed code. Unfortunately, this is not displayed.
What am I doing wrong? Do I have to set something up in Webflow?
iFrame:
<iframe id=“tarifrechner” src="https://secure2.hansemerkur.de/ola-ui2/1/490/tr/basisdaten?adnr=4896692”
frameborder=“0” scrolling="no”
style="width: 100%; min-height: 500px;”
onload=“adjustIframeHeight()”>
</iframe>
In the head code:
<meta http-equiv=“Content-Security-Policy” content=“frame-src ‘self’ https://secure2.hansemerkur.de;”>
Messages frontend:
the iframe is not loaded. it says in the frontend in the iFrame: secure2.hansemerkur.de has refused the connection.
This in the console: Refused to frame ‘https://secure2.hansemerkur.de/’ because an ancestor violates the following Content Security Policy directive: “frame-ancestors ‘self’”.