当前位置:网站首页>关于 Web Content-Security-Policy Directive 通过 meta 元素指定的一些测试用例
关于 Web Content-Security-Policy Directive 通过 meta 元素指定的一些测试用例
2022-07-07 10:07:00 【InfoQ】
frame-src


测试1:3000 应用(即嵌入 3002 应用的 web 应用里)增加 frame-src
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="frame-src 'self'">
</head>
<h1>Parent</h1>
<iframe src="http://localhost:3002/csp"></iframe>
</html>


测试2

<html>
<head>
<meta http-equiv="Content-Security-Policy" content="frame-src 'http://localhost:3002'">
</head>
<h1>Parent</h1>
<iframe src="http://localhost:3002/csp"></iframe>
</html>

*


<html>
<head>
<meta http-equiv="Content-Security-Policy" content="frame-src http://localhost:3002/csp">
</head>
<h1>Parent</h1>
<iframe src="http://localhost:3002/csp"></iframe>
</html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="frame-src http://localhost:*/csp">
</head>
<h1>Parent</h1>
<iframe src="http://localhost:3002/csp"></iframe>
</html>



边栏推荐
- Hi3516全系统类型烧录教程
- 【纹理特征提取】基于matlab局部二值模式LBP图像纹理特征提取【含Matlab源码 1931期】
- powershell cs-UTF-16LE编码上线
- Fleet tutorial 14 basic introduction to listtile (tutorial includes source code)
- 【最短路】ACwing 1127. 香甜的黄油(堆优化的dijsktra或spfa)
- Use references
- What is a LAN domain name? How to parse?
- 【神经网络】卷积神经网络CNN【含Matlab源码 1932期】
- 2022 年第八届“认证杯”中国高校风险管理与控制能力挑战赛
- What are the top-level domain names? How is it classified?
猜你喜欢

Up meta - Web3.0 world innovative meta universe financial agreement

Le Cluster kubernets en cours d'exécution veut ajuster l'adresse du segment réseau du pod

Flet教程之 15 GridView 基础入门(教程含源码)

Problem: the string and characters are typed successively, and the results conflict

《通信软件开发与应用》课程结业报告

Superscalar processor design yaoyongbin Chapter 9 instruction execution excerpt
![[filter tracking] strapdown inertial navigation pure inertial navigation solution matlab implementation](/img/14/6e440f3c4e04d9b322f0c3f43e213c.png)
[filter tracking] strapdown inertial navigation pure inertial navigation solution matlab implementation

Talk about SOC startup (IX) adding a new board to uboot

La voie du succès de la R & D des entreprises Internet à l’échelle des milliers de personnes

Zero shot, one shot and few shot
随机推荐
18 basic introduction to divider separator component of fleet tutorial (tutorial includes source code)
Fleet tutorial 14 basic introduction to listtile (tutorial includes source code)
Software design - "high cohesion and low coupling"
Camera calibration (2): summary of monocular camera calibration
Up meta - Web3.0 world innovative meta universe financial agreement
112.网络安全渗透测试—[权限提升篇10]—[Windows 2003 LPK.DDL劫持提权&msf本地提权]
Matlab implementation of Huffman coding and decoding with GUI interface
Use references
【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
110.网络安全渗透测试—[权限提升篇8]—[Windows SqlServer xp_cmdshell存储过程提权]
Some opinions and code implementation of Siou loss: more powerful learning for bounding box regression zhora gevorgyan
顶级域名有哪些?是如何分类的?
Let digital manage inventory
【系统设计】指标监控和告警系统
Suggestions on one-stop development of testing life
[neural network] convolutional neural network CNN [including Matlab source code 1932]
Introduction to three methods of anti red domain name generation
5V串口接3.3V单片机串口怎么搞?
百度数字人度晓晓在线回应网友喊话 应战上海高考英语作文
How much do you know about excel formula?