Index: LayoutTests/http/tests/htmlimports/resources/having-domain-policy.cgi |
diff --git a/LayoutTests/http/tests/htmlimports/resources/having-domain-policy.cgi b/LayoutTests/http/tests/htmlimports/resources/having-domain-policy.cgi |
new file mode 100755 |
index 0000000000000000000000000000000000000000..0a79cf95410c373888f443da4c37d882e4838b46 |
--- /dev/null |
+++ b/LayoutTests/http/tests/htmlimports/resources/having-domain-policy.cgi |
@@ -0,0 +1,21 @@ |
+#!/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> |
+<html> |
+<head> |
+<script src="http://127.0.0.1:8000/htmlimports/resources/external-script.js"></script> |
+<script src="http://localhost:8000/htmlimports/resources/cors-js.cgi"></script> |
+<script> |
+document.inlineScriptHasRun = true; |
+eval("document.evalFromInlineHasRun = true;"); |
+</script> |
+ |
+</head> |
+</html> |
+EOF |