Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php

Issue 2445823002: Remove CSP referrer directive (Closed)
Patch Set: remove unused test file Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php
index 3d99123ee3e0d1d084e3f900c16493c25aa06c8d..b58030010690ffeec9111faf62534ba23650e154 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/worker.php
@@ -14,6 +14,10 @@
header("Content-Security-Policy: connect-src 'none'");
header("Content-Security-Policy: script-src 'self'", false);
}
+
+ if ($_GET["referrerpolicy"]) {
+ header("Referrer-Policy: " . $_GET["referrerpolicy"]);
+ }
?>
<?php

Powered by Google App Engine
This is Rietveld 408576698