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