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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html

Issue 2290193003: Include the Origin header for XHR and Fetch API even if the request is same-origin
Patch Set: a Created 4 years, 4 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/serviceworker/resources/fetch-request-xhr-iframe.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html
index 609ac6e433a88b35191f40879e3eddad4a4fc429..452b97c279d5e65fa17726c583f96bc2e59c74c6 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html
@@ -69,7 +69,7 @@ function get_header_test() {
.then(function(response) {
assert_array_equals(
get_sorted_header_name_list(response.headers),
- ["accept", "user-agent"],
+ ["accept", "origin", "user-agent"],
'event.request has the expected headers for same-origin GET.');
});
}
@@ -91,7 +91,7 @@ function cross_origin_get_header_test() {
.then(function(response) {
assert_array_equals(
get_sorted_header_name_list(response.headers),
- ["accept", "user-agent"],
+ ["accept", "origin", "user-agent"],
'event.request has the expected headers for cross-origin GET.');
});
}

Powered by Google App Engine
This is Rietveld 408576698