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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php

Issue 133073007: CSP: 'sandbox' should be ignored in report-only mode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-report-only.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php
index d20196e14e743e105c93fdae2e60c9d44218579d..ad4f46f27ac4d2c58869792990d8d13b3160a765 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/sandbox.php
@@ -1,5 +1,9 @@
<?php
-header("Content-Security-Policy: sandbox " . $_GET["sandbox"]);
+if ($_GET["report-only"]) {
+ header("Content-Security-Policy-Report-Only: sandbox " . $_GET["sandbox"]);
+} else {
+ header("Content-Security-Policy: sandbox " . $_GET["sandbox"]);
+}
?>
<!DOCTYPE html>
<p>Ready</p>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-report-only.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698