当前位置:网站首页>修改未正确放入沙盒造成苹果兼容性问题
修改未正确放入沙盒造成苹果兼容性问题
2022-07-31 01:53:00 【猫猫的叮当】
在扫描问题对代码
ifram=document.createElement('iframe')
问题描述是:应用程序使用了一个HTML iframe,但其内容未正确地放入沙盒
关于iframe的内容:该标签生成一个指定区域,在该区域中嵌入其他网页。
他有一个属性值是sandbox:设置嵌入网页的权限。嵌入网页默认有正常的权限,比如执行脚本,提交表单,弹出窗口等,但是为了限制的风险,HTML提供了sandbox属性,允许设置嵌入的网页的权限,等同于提供了一个隔离层,即沙箱。他可以当做布尔属性使用,表示打开所有的限制,也可以逐项打开限制,未设置某一项,就表示不具有该权限。
修改:
ifram=document.createElement('iframe')
iframe.setAttribute('sandbox',true)
修改以后出现的问题:
在ios15.5以上的系统,前端掉用的所有客户端插件都调不动,问题就出现在新增的这一行代码,具体原因不知是什么造成,欢迎大佬解决。
边栏推荐
猜你喜欢
coldfusion8后台计划任务拿shell
GCC Rust is approved to be included in the mainline code base, or will meet you in GCC 13
leetcode-1161:最大层内元素和
观察者(observer)模式(一)
Inter-vlan routing + static routing + NAT (PAT + static NAT) comprehensive experiment
221. 最大正方形
Overview of prometheus monitoring
leetcode-952: Calculate max component size by common factor
Static route analysis (the longest mask matching principle + active and standby routes)
VSCode Plugin: Nested Comments
随机推荐
PDF 拆分/合并
ShardingJDBC使用总结
The PC side determines the type of browser currently in use
How to expose Prometheus metrics in go programs
Charging effect simulation
coldfusion8 background scheduled tasks take shell
mysql 索引
打印任务排序 js od华为
Problems that need to be solved by the tcp framework
【Map与Set】之LeetCode&牛客练习
CV-Model [3]: MobileNet v2
Verify the integer input
充电效果模拟
Drools WorkBench的简介与使用
VSCode Plugin: Nested Comments
软件测试基础接口测试-入门Jmeter,你要注意这些事
mysql index
Introduction and use of Drools WorkBench
什么是理想的大学生活?
[1154]如何将字符串转换为datetime