当前位置:网站首页>关于 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>



边栏推荐
- Review and arrangement of HCIA
- The road to success in R & D efficiency of 1000 person Internet companies
- 通过环境变量将 Pod 信息呈现给容器
- Half of the people don't know the difference between for and foreach???
- NPC Jincang was invited to participate in the "aerospace 706" I have an appointment with aerospace computer "national Partner Conference
- The Oracle message permission under the local Navicat connection liunx is insufficient
- Solve the problem that vscode can only open two tabs
- [filter tracking] comparison between EKF and UKF based on MATLAB extended Kalman filter [including Matlab source code 1933]
- 什么是局域网域名?如何解析?
- Flet教程之 17 Card卡片组件 基础入门(教程含源码)
猜你喜欢

Mastering the new functions of swiftui 4 weatherkit and swift charts

How to connect 5V serial port to 3.3V MCU serial port?

超标量处理器设计 姚永斌 第10章 指令提交 摘录

超标量处理器设计 姚永斌 第8章 指令发射 摘录

问题:先后键入字符串和字符,结果发生冲突

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

Cmu15445 (fall 2019) project 2 - hash table details

18 basic introduction to divider separator component of fleet tutorial (tutorial includes source code)

Programming examples of stm32f1 and stm32subeide -315m super regenerative wireless remote control module drive

.NET MAUI 性能提升
随机推荐
【神经网络】卷积神经网络CNN【含Matlab源码 1932期】
Flet教程之 17 Card卡片组件 基础入门(教程含源码)
What development models did you know during the interview? Just read this one
Onedns helps college industry network security
软件内部的定时炸弹:0-Day Log4Shell只是冰山一角
《论文阅读》Neural Approaches to Conversational AI(1)
STM32F1与STM32CubeIDE编程实例-MAX7219驱动8位7段数码管(基于SPI)
<No. 9> 1805. 字符串中不同整数的数目 (简单)
Tsinghua Yaoban programmers, online marriage was scolded?
Flet教程之 19 VerticalDivider 分隔符组件 基础入门(教程含源码)
Talk about SOC startup (x) kernel startup pilot knowledge
Solve the problem that vscode can only open two tabs
千人規模互聯網公司研發效能成功之路
Explore cloud database of cloud services together
【全栈计划 —— 编程语言之C#】基础入门知识一文懂
Swiftui swift internal skill: five skills of using opaque type in swift
108.网络安全渗透测试—[权限提升篇6]—[Windows内核溢出提权]
Flet tutorial 17 basic introduction to card components (tutorial includes source code)
111.网络安全渗透测试—[权限提升篇9]—[Windows 2008 R2内核溢出提权]
本地navicat连接liunx下的oracle报权限不足