Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/get-embedding-csp-header.php |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/get-embedding-csp-header.php b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/get-embedding-csp-header.php |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b5aa17f94e4f36f4794a5367a60804517a79af1a |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/get-embedding-csp-header.php |
@@ -0,0 +1,10 @@ |
+<?php |
+ $embedding_csp_header = isset($_SERVER['HTTP_EMBEDDING_CSP']) ? $_SERVER['HTTP_EMBEDDING_CSP'] : 'null'; |
+?> |
+ |
+<script> |
+ var response = {}; |
+ response['src'] = '../resources/get-embedding-csp-header.php'; |
+ response['embedding_csp'] = "<?php echo $embedding_csp_header; ?>"; |
+ window.top.postMessage(response, '*'); |
+</script> |