当前位置:网站首页>关于 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>
边栏推荐
- CMU15445 (Fall 2019) 之 Project#2 - Hash Table 详解
- Fleet tutorial 15 introduction to GridView Basics (tutorial includes source code)
- [extraction des caractéristiques de texture] extraction des caractéristiques de texture de l'image LBP basée sur le mode binaire local de Matlab [y compris le code source de Matlab 1931]
- [neural network] convolutional neural network CNN [including Matlab source code 1932]
- VIM command mode and input mode switching
- .NET MAUI 性能提升
- 正在运行的Kubernetes集群想要调整Pod的网段地址
- 【全栈计划 —— 编程语言之C#】基础入门知识一文懂
- Solve the problem that vscode can only open two tabs
- [filter tracking] strapdown inertial navigation pure inertial navigation solution matlab implementation
猜你喜欢
千人规模互联网公司研发效能成功之路
核舟记(一):当“男妈妈”走进现实,生物科技革命能解放女性吗?
软件内部的定时炸弹:0-Day Log4Shell只是冰山一角
Explore cloud database of cloud services together
相机标定(2): 单目相机标定总结
Flet教程之 19 VerticalDivider 分隔符组件 基础入门(教程含源码)
HCIA复习整理
Common locking table processing methods in Oracle
[neural network] convolutional neural network CNN [including Matlab source code 1932]
CMU15445 (Fall 2019) 之 Project#2 - Hash Table 详解
随机推荐
【最短路】ACwing 1127. 香甜的黄油(堆优化的dijsktra或spfa)
SwiftUI 4 新功能之掌握 WeatherKit 和 Swift Charts
[data clustering] realize data clustering analysis based on multiverse optimization DBSCAN with matlab code
从工具升级为解决方案,有赞的新站位指向新价值
Nuclear boat (I): when "male mothers" come into reality, can the biotechnology revolution liberate women?
Internet Protocol
Talk about SOC startup (VI) uboot startup process II
SwiftUI Swift 内功之如何在 Swift 中进行自动三角函数计算
相机标定(1): 单目相机标定及张正友标定基本原理
How to write test cases for test coupons?
Problem: the string and characters are typed successively, and the results conflict
一起探索云服务之云数据库
Fleet tutorial 14 basic introduction to listtile (tutorial includes source code)
正在運行的Kubernetes集群想要調整Pod的網段地址
The Oracle message permission under the local Navicat connection liunx is insufficient
[shortest circuit] acwing 1127 Sweet butter (heap optimized dijsktra or SPFA)
【全栈计划 —— 编程语言之C#】基础入门知识一文懂
<No. 8> 1816. Truncate sentences (simple)
请查收.NET MAUI 的最新学习资源
Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)