Index: LayoutTests/http/tests/security/upgrade-insecure-requests/resources/post-https-header.pl |
diff --git a/LayoutTests/http/tests/security/upgrade-insecure-requests/resources/post-https-header.pl b/LayoutTests/http/tests/security/upgrade-insecure-requests/resources/post-https-header.pl |
new file mode 100755 |
index 0000000000000000000000000000000000000000..a15436016d91d1a0f50bbda15971e1fa14ef935b |
--- /dev/null |
+++ b/LayoutTests/http/tests/security/upgrade-insecure-requests/resources/post-https-header.pl |
@@ -0,0 +1,13 @@ |
+#!/usr/bin/perl -wT |
+use strict; |
+ |
+print "Content-Type: text/html\n"; |
+print "Access-Control-Allow-Origin: *\n"; |
+print "Cache-Control: no-store\n\n"; |
+ |
+print <<DONE |
+<script> |
+ var target = window.opener || window.top; |
+ target.postMessage({ "https": "$ENV{"HTTP_HTTPS"}" }, "*"); |
+</script> |
+DONE |