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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/cors-redirect.cgi

Issue 1860693004: Allow custom inspector header for CORS preflight. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/cors-redirect.cgi
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/cors-redirect.cgi b/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/cors-redirect.cgi
new file mode 100755
index 0000000000000000000000000000000000000000..6441e3154543a956fda1f49578edee18e344e367
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/cors-redirect.cgi
@@ -0,0 +1,14 @@
+#!/usr/bin/perl -wT
+use strict;
+use CGI;
+my $q = CGI->new;
+my %headers = map { $_ => $q->http($_) } $q->http();
+
+print "Status: 307 Internal Redirect\n";
+print "Location: cors.cgi\n";
+print "Access-Control-Allow-Headers:X-PINGARUNER, CONTENT-TYPE, X-TEST\n";
+print "Access-Control-Allow-Methods:POST, GET, OPTIONS\n";
+print "Access-Control-Allow-Origin:http://127.0.0.1:8000\n";
+print "Access-Control-Max-Age:1728000\n";
+print "\n";
+print "OK";

Powered by Google App Engine
This is Rietveld 408576698