Index: LayoutTests/http/tests/security/contentSecurityPolicy/resources/test-csp-header.pl |
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/test-csp-header.pl b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/test-csp-header.pl |
new file mode 100755 |
index 0000000000000000000000000000000000000000..55dc114e0f709d3dbea0835f6010171fb947af61 |
--- /dev/null |
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/test-csp-header.pl |
@@ -0,0 +1,13 @@ |
+#!/usr/bin/perl |
+ |
+if ($ENV{HTTP_CSP} eq "active") { |
+ print "Status: 200\r\n"; |
+ print "Content-type: application/javascript\r\n"; |
+ print "\r\n"; |
+ print "script_loaded = true;\r\n\r\n" |
+} else { |
+ print "Status: 404\r\n"; |
+ print "Content-type: text/html\r\n"; |
+ print "\r\n"; |
+ print "CSP header not sent\r\n\r\n"; |
+} |