I am trying to load an external webpage inside an iframe. The external webpage includes javascript and html.
When I try to load the iframe, I get the following error:
Uncaught DOMException: Blocked a frame with origin "https://www.example.com" from accessing a cross-origin frame.
Here is the content script code
let iframeEl = document.createElement('iframe');
iframeEl.src = "https://www.example.com";
document.body.appendChild(iframeEl);
How can I get past the cross origin error?