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

Side by Side Diff: LayoutTests/http/tests/htmlimports/resources/cookie-match.cgi

Issue 196043002: HTML Imports: Send credentials for same origin requests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Landing again with another fix Created 6 years, 9 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
(Empty)
1 #!/usr/bin/perl -wT
2 use strict;
3
4 my $query = $ENV{"QUERY_STRING"};
5 my $cookie = $ENV{"HTTP_COOKIE"};
6
7 $query =~ s/\?//g; # Squash "?" that is added to prevent dedup.
8
9 print "Content-Type: text/html\n";
10 print "Access-Control-Allow-Credentials: true\n";
11 print "Access-Control-Allow-Origin: *\n";
12 print "\n";
13
14 if ($query eq $cookie) {
15 print "<body>PASS</body>"
16 } else {
17 print "<body>FAIL: Cookie:" . $cookie .", Query:" . $query . "</body>";
18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698