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

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

Issue 27073003: CSP Suborigins Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address abarth's comments Created 6 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: LayoutTests/http/tests/security/contentSecurityPolicy/resources/suborigin.php
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/suborigin.php b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/suborigin.php
new file mode 100644
index 0000000000000000000000000000000000000000..022d0d63ee8c1809e1bc368d71d0f7ab20d0207e
--- /dev/null
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/suborigin.php
@@ -0,0 +1,12 @@
+<?php
Mike West 2014/10/23 12:59:18 Nit: I'd suggest moving the tests into http/tests/
jww 2015/03/20 22:50:02 Done.
+if ($_GET["report-only"]) {
+ header("Content-Security-Policy-Report-Only: suborigin " . $_GET["suborigin"]);
+} else {
+ header("Content-Security-Policy: suborigin " . $_GET["suborigin"]);
+}
+?>
+<!DOCTYPE html>
+<p>Ready</p>
+<script>
+window.secret = "I am a secret";
+</script>

Powered by Google App Engine
This is Rietveld 408576698