当前位置:网站首页>修改未正确放入沙盒造成苹果兼容性问题
修改未正确放入沙盒造成苹果兼容性问题
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以上的系统,前端掉用的所有客户端插件都调不动,问题就出现在新增的这一行代码,具体原因不知是什么造成,欢迎大佬解决。
边栏推荐
- After reading "MySQL Database Advanced Practice" (SQL Xiao Xuzhu)
- mysql 视图
- 简易表白小页面
- Manchester City confuses fans with smart scarf that detects emotions
- Are you still working hard on the limit of MySQL paging?
- 软件测试基础接口测试-入门Jmeter,你要注意这些事
- Brute Force/Adjacency Matrix Breadth First Directed Weighted Graph Undirected Weighted Graph
- What does a software test report contain?
- Crypto Life, a day in the life of a Web3 project partner
- coldfusion8后台计划任务拿shell
猜你喜欢

mysql view

《MySQL数据库进阶实战》读后感(SQL 小虚竹)

934. 最短的桥

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

软件测试要达到一个什么水平才能找到一份9K的工作?

Problems that need to be solved by the tcp framework

GCC Rust获批将被纳入主线代码库,或将于GCC 13中与大家见面

coldfusion8 background scheduled tasks take shell

tcp框架需要解决的问题

【flask入门系列】Flask-SQLAlchemy的使用
随机推荐
Crypto Life, a day in the life of a Web3 project partner
【AcWing 第62场周赛】
Fiddler captures packets to simulate weak network environment testing
Drools Rule Properties, Advanced Syntax
Path and the largest
leetcode-1161: Maximum in-layer element sum
有没有可以做副业可以日入300元方法?
What is the ideal college life?
934. 最短的桥
Shell script to loop through values in log file to sum and calculate average, max and min
第一学年课程期末考试
STP选举(步骤+案列)详解
mysql index
Simple confession page
两个有序数组间相加和的Topk问题
Nacos
leetcode-128: longest continuous sequence
rpm安装postgresql12
221. 最大正方形
leetcode-399:除法求值