Index: LayoutTests/http/tests/htmlimports/resources/cors-js-for-localhost.cgi |
diff --git a/LayoutTests/http/tests/htmlimports/resources/cors-js-for-localhost.cgi b/LayoutTests/http/tests/htmlimports/resources/cors-js-for-localhost.cgi |
new file mode 100755 |
index 0000000000000000000000000000000000000000..d213ced519882740838a9db57a0391ee10f5ae48 |
--- /dev/null |
+++ b/LayoutTests/http/tests/htmlimports/resources/cors-js-for-localhost.cgi |
@@ -0,0 +1,9 @@ |
+#!/usr/bin/perl -wT |
+use strict; |
+ |
+print "Content-Type: text/javascript\n"; |
+print "Access-Control-Allow-Credentials: true\n"; |
+print "Access-Control-Allow-Origin: http://localhost:8000\n\n"; |
+ |
+print "document.corsExternalScriptForLocalhostHasRun = true;\n"; |
+print "eval(\"document.evalFromCorsExternalLocalhostHasRun = true;\");"; |