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

Unified Diff: trunk/LayoutTests/http/tests/htmlimports/resources/cookie-match.cgi

Issue 203593008: Revert 169496 "HTML Imports: Send credentials for same origin re..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: trunk/LayoutTests/http/tests/htmlimports/resources/cookie-match.cgi
===================================================================
--- trunk/LayoutTests/http/tests/htmlimports/resources/cookie-match.cgi (revision 169503)
+++ trunk/LayoutTests/http/tests/htmlimports/resources/cookie-match.cgi (working copy)
@@ -1,18 +0,0 @@
-#!/usr/bin/perl -wT
-use strict;
-
-my $query = $ENV{"QUERY_STRING"};
-my $cookie = $ENV{"HTTP_COOKIE"};
-
-$query =~ s/\?//g; # Squash "?" that is added to prevent dedup.
-
-print "Content-Type: text/html\n";
-print "Access-Control-Allow-Credentials: true\n";
-print "Access-Control-Allow-Origin: *\n";
-print "\n";
-
-if ($query eq $cookie) {
- print "<body>PASS</body>"
-} else {
- print "<body>FAIL: Cookie:" . $cookie .", Query:" . $query . "</body>";
-}

Powered by Google App Engine
This is Rietveld 408576698