How to embed replit in iframe dynamically?

I’m trying to embed replit here https://jsfiddle.net/69ajeskL/2/ It doesn’t work why ?

html:

<div id="placeHolder">
</div>

js:

let placeHolder = document.getElementById('placeHolder');
let iframe = document.createElement('iframe');
placeHolder.appendChild(iframe);

iframe.src = "https://replit.com/@SilkyS/HelloWorld?v=1";

Answer

You can’t embed https://replit.com/@SilkyS/HelloWorld?v=1 in an <iframe> because it has its X-Frame-Options header set to DENY.

You can, however, embed the page embedded by that page, https://ca96c5e0-a1a8-4010-a7eb-cc3d7c86ad3b.id.repl.co/.