aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/support/csp.php
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-02-07 17:03:04 -0500
committerRichard Gibson <richard.gibson@gmail.com>2013-02-07 17:03:04 -0500
commit6971d9d8e2b88d008884e0758c94c528dc97238c (patch)
treec31a2392a43d4027dbb517d53a68f240c6441269 /test/data/support/csp.php
parent363299ac24aebbf2445207621840f44fcaaf670a (diff)
downloadjquery-6971d9d8e2b88d008884e0758c94c528dc97238c.tar.gz
jquery-6971d9d8e2b88d008884e0758c94c528dc97238c.zip
Fix 363299ac failures
Diffstat (limited to 'test/data/support/csp.php')
-rw-r--r--test/data/support/csp.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/data/support/csp.php b/test/data/support/csp.php
index 9aa029b9c..f72aa0768 100644
--- a/test/data/support/csp.php
+++ b/test/data/support/csp.php
@@ -1,6 +1,12 @@
<?php
+ # Support: Firefox
header("X-Content-Security-Policy: default-src 'self';");
- header("X-WebKit-CSP: script-src 'self'");
+
+ # Support: Webkit, Safari 5
+ # http://stackoverflow.com/questions/13663302/why-does-my-content-security-policy-work-everywhere-but-safari
+ header("X-WebKit-CSP: script-src " . $_SERVER["HTTP_HOST"] . " 'self'");
+
+ header("Content-Security-Policy: default-src 'self'");
?>
<!DOCTYPE html>
<html>