当前位置:网站首页>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.
边栏推荐
- [WeChat applet] This article takes you to understand data binding, event binding, event parameter transfer, and data synchronization
- Observer mode (1)
- mysql 视图
- StringJoiner详解
- 修改未正确放入沙盒造成苹果兼容性问题
- Project development software directory structure specification
- 图像处理技术的心酸史
- Introduction and use of Drools WorkBench
- Static route analysis (the longest mask matching principle + active and standby routes)
- tcp框架需要解决的问题
猜你喜欢

Arbitrum Interview | L2 Summer, what does the standout Arbitrum bring to developers?

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

Unity界面总体介绍

Observer mode (1)

12张图带你彻底搞懂服务限流、熔断、降级、雪崩

Crypto Life, a day in the life of a Web3 project partner
![[Map and Set] LeetCode & Niu Ke exercise](/img/66/d812a6ad854cb0993c796760042150.png)
[Map and Set] LeetCode & Niu Ke exercise

rpm install postgresql12

leetcode-399: division evaluation

The Sad History of Image Processing Technology
随机推荐
验证整数输入
vlan间路由+静态路由+NAT(PAT+静态NAT)综合实验
Software testing basic interface testing - getting started with Jmeter, you should pay attention to these things
AtCoder Beginner Contest 261 Partial Solution
PDF 拆分/合并
Problems that need to be solved by the tcp framework
Validate XML documents
Gateway routing configuration
cudaMemcpy study notes
二层广播风暴(产生原因+判断+解决)
【AcWing 62nd Weekly Game】
CMOS和TTL的区别?
基于opencv实现人脸检测
Basic introduction to ShardingJDBC
The application of AI in the whole process of medical imaging equipment
Introduction and use of Drools WorkBench
加密生活,Web3 项目合伙人的一天
Brute Force/Adjacency Matrix Breadth First Directed Weighted Graph Undirected Weighted Graph
Verify the integer input
Can an inexperienced college graduate switch to software testing?my real case