当前位置:网站首页>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.
边栏推荐
- Shell 脚本循环遍历日志文件中的值进行求和并计算平均值,最大值和最小值
- Charging effect simulation
- The effective square of the test (one question of the day 7/29)
- CMOS和TTL的区别?
- rpm install postgresql12
- The Sad History of Image Processing Technology
- Is there a way to earn 300 yuan a day by doing a side business?
- What does a software test report contain?
- The PC side determines the type of browser currently in use
- uniapp uses 3rd party fonts
猜你喜欢
Live Preview | KDD2022 Doctoral Dissertation Award Champion and Runner-up Dialogue
怎样做好一个创业公司CTO?
What level of software testing does it take to get a 9K job?
Can an inexperienced college graduate switch to software testing?my real case
There is a problem with the multiplayer-hlap package and the solution cannot be upgraded
曼城推出可检测情绪的智能围巾,把球迷给整迷惑了
LeetCode 1161 最大层内元素和[BFS 二叉树] HERODING的LeetCode之路
静态路由+PAT+静态NAT(讲解+实验)
The principle of complete replication of virtual machines (cloud computing)
Maximum monthly salary of 20K?The average salary is nearly 10,000... What is the experience of working in a Huawei subsidiary?
随机推荐
Installation, start and stop of redis7 under Linux
Are you still working hard on the limit of MySQL paging?
Likou Daily Question - Day 46 - 704. Binary Search
mmdetection trains a model related command
Verify the integer input
静态路由+PAT+静态NAT(讲解+实验)
Force buckled brush the stairs (7/30)
mysql view
【AcWing 62nd Weekly Game】
Can an inexperienced college graduate switch to software testing?my real case
[Map and Set] LeetCode & Niu Ke exercise
LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING
What does a software test report contain?
Software Testing Defect Reporting - Definition, Composition, Defect Lifecycle, Defect Tracking Post-Production Process, Defect Tracking Process, Purpose of Defect Tracking, Defect Management Tools
Gateway routing configuration
AtCoder Beginner Contest 261 部分题解
Introduction and use of Drools WorkBench
汉源高科8路HDMI综合多业务高清视频光端机8路HDMI视频+8路双向音频+8路485数据+8路E1+32路电话+4路千兆物理隔离网络
如何在 go 程序中暴露 Prometheus 指标
keep-alive cache component