当前位置:网站首页>修改未正确放入沙盒造成苹果兼容性问题
修改未正确放入沙盒造成苹果兼容性问题
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以上的系统,前端掉用的所有客户端插件都调不动,问题就出现在新增的这一行代码,具体原因不知是什么造成,欢迎大佬解决。
边栏推荐
- cudaMemcpy学习笔记
- 基于FPGA的图像实时采集
- Programmer's debriefing report/summary
- cudaMemcpy study notes
- FPGA-based vending machine
- MySQL installation tutorial (detailed, package teaching package~)
- MySQL的安装教程(嗷嗷详细,包教包会~)
- uniapp uses 3rd party fonts
- Software testing basic interface testing - getting started with Jmeter, you should pay attention to these things
- Static route analysis (the longest mask matching principle + active and standby routes)
猜你喜欢

Between two orderly array of additive and Topk problem

GCC Rust is approved to be included in the mainline code base, or will meet you in GCC 13

mmdetection trains a model related command

基于FPGA的售货机

MySql installation and configuration super detailed tutorial and simple method of building database and table

最大路径和

CV-Model【3】:MobileNet v2

Teach you how to configure Jenkins automated email notifications

MySQL stored procedure

Force buckled brush the stairs (7/30)
随机推荐
cudaMemcpy study notes
MySQL的安装教程(嗷嗷详细,包教包会~)
第一学年课程期末考试
leetcode-1161:最大层内元素和
ShardingJDBC使用总结
Drools basic introduction, introductory case, basic syntax
The effective square of the test (one question of the day 7/29)
[WeChat applet] This article takes you to understand data binding, event binding, event parameter transfer, and data synchronization
Drools WorkBench的简介与使用
最高月薪20K?平均薪资近万...在华为子公司工作是什么体验?
rpm install postgresql12
Arbitrum Interview | L2 Summer, what does the standout Arbitrum bring to developers?
mmdetection训练一个模型相关命令
Can an inexperienced college graduate switch to software testing?my real case
Between two orderly array of additive and Topk problem
FPGA-based vending machine
怎样做好一个创业公司CTO?
用户交互+格式化输出
Observer mode (1)
两个有序数组间相加和的Topk问题