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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/cache/resources/xhr-vary-header-response.php

Issue 2290193003: Include the Origin header for XHR and Fetch API even if the request is same-origin
Patch Set: a Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/cache/resources/xhr-vary-header-subframe.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/cache/resources/xhr-vary-header-response.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/cache/resources/xhr-vary-header-response.php b/third_party/WebKit/LayoutTests/http/tests/cache/resources/xhr-vary-header-response.php
index 02b8e567694f92aef19b9a5c411ecce5e4203ad4..88420b6a1e732198ad910d9552080d7c8e546f8b 100644
--- a/third_party/WebKit/LayoutTests/http/tests/cache/resources/xhr-vary-header-response.php
+++ b/third_party/WebKit/LayoutTests/http/tests/cache/resources/xhr-vary-header-response.php
@@ -2,10 +2,9 @@
header("Vary: Origin");
header("Cache-Control: max-age=31536000");
if (isset($_SERVER['HTTP_ORIGIN'])) {
- header("Access-Control-Allow-Origin: http://127.0.0.1:8000");
- echo "Cross origin ";
+ header("Access-Control-Allow-Origin: *");
+ echo "Origin header value is " . $_SERVER['HTTP_ORIGIN'];
} else {
- echo "Same origin ";
+ echo "No origin header";
}
?>
-response
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/cache/resources/xhr-vary-header-subframe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698