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

Unified Diff: LayoutTests/http/tests/htmlimports/resources/cors-csp-blocking.cgi

Issue 19940002: [HTML Import] Respect Content Security Policy Model (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix mac build failure. Created 7 years, 5 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/htmlimports/resources/cors-csp-blocking.cgi
diff --git a/LayoutTests/http/tests/htmlimports/resources/cors-csp-blocking.cgi b/LayoutTests/http/tests/htmlimports/resources/cors-csp-blocking.cgi
new file mode 100755
index 0000000000000000000000000000000000000000..ac9e000d8024ec8991fbf26b7f7ac0bf2aef44e1
--- /dev/null
+++ b/LayoutTests/http/tests/htmlimports/resources/cors-csp-blocking.cgi
@@ -0,0 +1,11 @@
+#!/usr/bin/perl -wT
+use strict;
+
+print "Content-Type: text/html\n";
+print "Content-Security-Policy: script-src 'unsafe-inline'\n";
+print "Access-Control-Allow-Credentials: true\n";
+print "Access-Control-Allow-Origin: http://127.0.0.1:8000\n\n";
+
+print "<html><head>";
+print "<link id=\"shouldBeImported\" rel=\"import\" href=\"cors-basic.cgi\">";
+print "</head></html>\n";

Powered by Google App Engine
This is Rietveld 408576698