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 |
+ |