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

Side by Side Diff: LayoutTests/http/tests/security/upgrade-insecure-requests/resources/post-https-header.pl

Issue 1239933002: Merge 198924 "UPGRADE: Rename the 'https' header." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2454/
Patch Set: Created 5 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/perl -wT 1 #!/usr/bin/perl -wT
2 use strict; 2 use strict;
3 3
4 print "Content-Type: text/html\n"; 4 print "Content-Type: text/html\n";
5 print "Access-Control-Allow-Origin: *\n"; 5 print "Access-Control-Allow-Origin: *\n";
6 print "Cache-Control: no-store\n\n"; 6 print "Cache-Control: no-store\n\n";
7 7
8 print <<DONE 8 print <<DONE
9 <script> 9 <script>
10 var target = window.opener || window.top; 10 var target = window.opener || window.top;
11 target.postMessage({ "https": "$ENV{"HTTP_HTTPS"}" }, "*"); 11 target.postMessage({ "header": "$ENV{"HTTP_UPGRADE_INSECURE_REQUESTS"}" }, " *");
12 </script> 12 </script>
13 DONE 13 DONE
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698