当前位置:网站首页>关于 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>
边栏推荐
- NPC Jincang was invited to participate in the "aerospace 706" I have an appointment with aerospace computer "national Partner Conference
- 请查收.NET MAUI 的最新学习资源
- 通过环境变量将 Pod 信息呈现给容器
- Poor math students who once dropped out of school won the fields award this year
- 2022年在启牛开华泰的账户安全吗?
- 一起探索云服务之云数据库
- 超标量处理器设计 姚永斌 第10章 指令提交 摘录
- 超标量处理器设计 姚永斌 第8章 指令发射 摘录
- Complete collection of common error handling in MySQL installation
- 【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
猜你喜欢
zero-shot, one-shot和few-shot
<No. 8> 1816. 截断句子 (简单)
2022 8th "certification Cup" China University risk management and control ability challenge
[full stack plan - programming language C] basic introductory knowledge
Enclosed please find. Net Maui's latest learning resources
相机标定(1): 单目相机标定及张正友标定基本原理
<No. 8> 1816. Truncate sentences (simple)
《通信软件开发与应用》课程结业报告
Flet教程之 18 Divider 分隔符组件 基础入门(教程含源码)
HCIA复习整理
随机推荐
Unity中SmoothStep介绍和应用: 溶解特效优化
Test the foundation of development, and teach you to prepare for a fully functional web platform environment
Half of the people don't know the difference between for and foreach???
【数据聚类】基于多元宇宙优化DBSCAN实现数据聚类分析附matlab代码
Review and arrangement of HCIA
sink 消费 到 MySQL, 数据库表里面已经设置了 自增主键, flink 里面,如何 操作?
Camera calibration (2): summary of monocular camera calibration
Summed up 200 Classic machine learning interview questions (with reference answers)
There are so many factors that imprison you
Visual Studio 2019 (LocalDB)\MSSQLLocalDB SQL Server 2014 数据库版本为852无法打开,此服务器支持782版及更低版本
顶级域名有哪些?是如何分类的?
百度数字人度晓晓在线回应网友喊话 应战上海高考英语作文
112. Network security penetration test - [privilege promotion article 10] - [Windows 2003 lpk.ddl hijacking rights lifting & MSF local rights lifting]
【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
Talk about SOC startup (VII) uboot startup process III
Suggestions on one-stop development of testing life
Common locking table processing methods in Oracle
Ask about the version of flinkcdc2.2.0, which supports concurrency. Does this concurrency mean Multiple Parallelism? Now I find that mysqlcdc is full
[shortest circuit] acwing1128 Messenger: Floyd shortest circuit
Fleet tutorial 15 introduction to GridView Basics (tutorial includes source code)