How to allow http content within an iframe on a https site

后端 未结 10 1491
我寻月下人不归
我寻月下人不归 2020-11-22 14:06

I load some HTML into an iframe but when a file referenced is using http, not https, I get the following error:

[blocked] The page at {current_pagenam

10条回答
  •  没有蜡笔的小新
    2020-11-22 14:30

    You could try scraping whatever you need with PHP or another server side language, then put the iframe to the scraped content. Here's an example with PHP:

    scrapedcontent.php:

    
    

    index.html:

    
    

提交回复
热议问题