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

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

Issue 196043002: HTML Imports: Send credentials for same origin requests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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: LayoutTests/http/tests/htmlimports/resources/having-cookie-match-same.cgi
diff --git a/LayoutTests/http/tests/htmlimports/resources/having-cookie-match-same.cgi b/LayoutTests/http/tests/htmlimports/resources/having-cookie-match-same.cgi
new file mode 100755
index 0000000000000000000000000000000000000000..2becd2faa51f0fe9704ef2ac32d30f97feb34fde
--- /dev/null
+++ b/LayoutTests/http/tests/htmlimports/resources/having-cookie-match-same.cgi
@@ -0,0 +1,12 @@
+#!/usr/bin/perl -wT
+use strict;
+
+print "Content-Type: text/html\n";
+print "Access-Control-Allow-Credentials: true\n";
+print "Access-Control-Allow-Origin: *\n";
+print "\n";
+print <<EOF
+<!DOCTYPE html>
+<!-- Put an extra "?" in the URL to prevent de-deup -->
+<link id="sameOrigin" rel="import" href="http://127.0.0.1:8000/htmlimports/resources/cookie-match.cgi?key=HelloCredentials?">
+EOF

Powered by Google App Engine
This is Rietveld 408576698