当前位置:网站首页>修改未正确放入沙盒造成苹果兼容性问题
修改未正确放入沙盒造成苹果兼容性问题
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以上的系统,前端掉用的所有客户端插件都调不动,问题就出现在新增的这一行代码,具体原因不知是什么造成,欢迎大佬解决。
边栏推荐
- rpm install postgresql12
- 静态路由解析(最长掩码匹配原则+主备路由)
- [Map and Set] LeetCode & Niu Ke exercise
- mysql index
- Likou Daily Question - Day 46 - 704. Binary Search
- Static routing + PAT + static NAT (explanation + experiment)
- Basic introduction to ShardingJDBC
- Teach you how to configure Jenkins automated email notifications
- "Cloud native's master, master and vulgar skills" - 2022 National New College Entrance Examination Volume I Composition
- Between two orderly array of additive and Topk problem
猜你喜欢

观察者(observer)模式(一)

内网渗透——提权

Maximum monthly salary of 20K?The average salary is nearly 10,000... What is the experience of working in a Huawei subsidiary?

手把手教你配置Jenkins自动化邮件通知

mysql 视图
![[Map and Set] LeetCode & Niu Ke exercise](/img/66/d812a6ad854cb0993c796760042150.png)
[Map and Set] LeetCode & Niu Ke exercise

Static route analysis (the longest mask matching principle + active and standby routes)

勾股数元组 od js

"Cloud native's master, master and vulgar skills" - 2022 National New College Entrance Examination Volume I Composition

Unity界面总体介绍
随机推荐
二层广播风暴(产生原因+判断+解决)
Drools Rule Properties, Advanced Syntax
Crypto Life, a day in the life of a Web3 project partner
leetcode-952:按公因数计算最大组件大小
Charging effect simulation
第一学年课程期末考试
keep-alive cache component
基于FPGA的售货机
uniapp使用第三方字体
C语言小程序 -- 常见经典练习题
Nacos
ShardingJDBC使用总结
pycharm重命名后无法运行(报错: can‘t open file......No such file or directory)
打印任务排序 js od华为
有没有可以做副业可以日入300元方法?
【微信小程序】一文带你了解数据绑定、事件绑定以及事件传参、数据同步
What are the project management tools like MS Project
Static route analysis (the longest mask matching principle + active and standby routes)
充电效果模拟
My first understanding of MySql, and the basic syntax of DDL and DML and DQL in sql statements