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

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

Issue 186803005: [import] Use master document's origin to resolve CORS (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | « LayoutTests/http/tests/htmlimports/resources/cors-basic.cgi ('k') | Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/htmlimports/resources/cors-subimports.cgi
diff --git a/LayoutTests/http/tests/htmlimports/resources/cors-subimports.cgi b/LayoutTests/http/tests/htmlimports/resources/cors-subimports.cgi
new file mode 100755
index 0000000000000000000000000000000000000000..d66142f8a8f666e55c77615c938fffde64002311
--- /dev/null
+++ b/LayoutTests/http/tests/htmlimports/resources/cors-subimports.cgi
@@ -0,0 +1,15 @@
+#!/usr/bin/perl -wT
+use strict;
+
+print "Content-Type: text/html\n";
+print "Access-Control-Allow-Credentials: true\n";
+print "Access-Control-Allow-Origin: http://127.0.0.1:8000\n\n";
+
+print <<EOF
+<!DOCTYPE html>
+<link id="sameOriginCors" rel="import" href="cors-basic.cgi?1">
+<link id="sameOriginNoCors" rel="import" href="resources/hello.html?1">
+<link id="masterOriginNoCors" rel="import" href="http://127.0.0.1:8000/htmlimports/resources/hello.html?2">
+<link id="masterOriginCors" rel="import" href="http://127.0.0.1:8000/htmlimports/resources/cors-basic.cgi?2">
+EOF
+
« no previous file with comments | « LayoutTests/http/tests/htmlimports/resources/cors-basic.cgi ('k') | Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698