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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/resources/referrer-and-host.php

Issue 2151693009: Preserve referrer across CORS-enabled redirects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/resources/referrer-and-host.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/resources/referrer-and-host.php b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/resources/referrer-and-host.php
new file mode 100644
index 0000000000000000000000000000000000000000..6f4bbc6445f2ceecd6f838d33da9b52d98884412
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/resources/referrer-and-host.php
@@ -0,0 +1,8 @@
+<?
+header('Access-Control-Allow-Origin: *');
+header('Content-Type: text/json');
+?>
+{
+ "referrer": "<? echo $_SERVER['HTTP_REFERER']; ?>",
+ "host": "<? echo $_SERVER['HTTP_HOST']; ?>"
+}

Powered by Google App Engine
This is Rietveld 408576698