当前位置:网站首页>The modification is not properly placed in the sandbox, causing Apple compatibility issues
The modification is not properly placed in the sandbox, causing Apple compatibility issues
2022-07-31 02:19:00 【cat jingle】
Scanning questions for code
ifram=document.createElement('iframe')span>Problem description: The application uses an HTML iframe, but its content is not properly sandboxed
About the content of the iframe: This tag generates a designated area in which to embed other web pages.
He has an attribute value of sandbox: set the permission to embed web pages.Embedded web pages have normal permissions by default, such as executing scripts, submitting forms, pop-up windows, etc., but in order to limit the risk, HTML provides the sandbox attribute, which allows setting the permissions of the embedded web page, which is equivalent to providing an isolation layer, that is, the sandbox.It can be used as a Boolean attribute, which means that all restrictions are turned on, or restrictions can be turned on item by item. If a certain item is not set, it means that it does not have the permission.
Modify:ifram=document.createElement('iframe')span>iframe.setAttribute('sandbox',true)Problems after modification:
In systems above ios15.5, all client plug-ins used by the front end cannot be adjusted. The problem occurs in the newly added line of code. The specific reason is unknown., welcome to solve it.
边栏推荐
猜你喜欢

General introduction to the Unity interface

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

The principle of complete replication of virtual machines (cloud computing)

AI在医疗影像设备全流程应用

The effective square of the test (one question of the day 7/29)

Drools basic introduction, introductory case, basic syntax

Shell script to loop through values in log file to sum and calculate average, max and min

两个有序数组间相加和的Topk问题

Nacos

Drools规则属性,高级语法
随机推荐
图像处理技术的心酸史
系统需求多变如何设计
AI中的数学思想
Crawler text data cleaning
完整复制虚拟机原理(云计算)
C语言小程序 -- 常见经典练习题
LeetCode 1161 最大层内元素和[BFS 二叉树] HERODING的LeetCode之路
来自一位女测试工程师的内心独白...
mysql view
MySQL installation tutorial (detailed, package teaching package~)
What does a software test report contain?
MPPT solar charge controller data collection - through the gateway acquisition capacity battery SOC battery voltage, wi-fi
Linux下redis7的安装,启动与停止
医疗影像领域AI软件开发流程
怎样做好一个创业公司CTO?
19.支持向量机-优化目标和大间距直观理解
Introduction to flask series 】 【 flask - using SQLAlchemy
经典链表OJ强训题——快慢双指针高效解法
The final exam first year course
Refuse to work overtime, a productivity tool set developed by programmers