I am using a Chrome extension to display contents from a http website on a https website using the code below:
$("#div").html('<object data="http://example.com/"');
However I'm receiving this error due to mixing http and https:
Mixed Content: The page at 'https://website.com' was loaded over HTTPS, but requested an insecure plugin resource 'http://example.com/'. This request has been blocked; the content must be served over HTTPS.
How can I overcome this? The http website cannot be loaded with https.
Note: I have to use Javascript/jQuery as I am using the code in a Chrome extension.