相关疑难解决方法(0)

如何在https网站上的iframe中允许http内容

我将一些HTML加载到iframe中但是当引用的文件使用http而不是https时,我收到以下错误:

[已阻止] {current_pagename}的页面从{referenced_filename}运行了不安全的内容

有什么方法可以关闭它或以任何方式解决它?

iframe没有src属性,内容使用以下方式设置:

frame.open();
frame.write(html);
frame.close();
Run Code Online (Sandbox Code Playgroud)

html security https iframe http

135
推荐指数
6
解决办法
32万
查看次数

标签 统计

html ×1

http ×1

https ×1

iframe ×1

security ×1