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

Unified Diff: chrome/test/data/extensions/api_test/webrequest/cors/redirect_target.gif.mock-http-headers

Issue 348253002: Add CORS headers to URLRequestRedirectJob. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: EXPECT GURL -> std::string Created 6 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
Index: chrome/test/data/extensions/api_test/webrequest/cors/redirect_target.gif.mock-http-headers
diff --git a/chrome/test/data/extensions/api_test/webrequest/cors/redirect_target.gif.mock-http-headers b/chrome/test/data/extensions/api_test/webrequest/cors/redirect_target.gif.mock-http-headers
new file mode 100644
index 0000000000000000000000000000000000000000..7de552371687bef53c470c351aceb8b54dc4b176
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/webrequest/cors/redirect_target.gif.mock-http-headers
@@ -0,0 +1,9 @@
+HTTP/1.1 200 OK
+Content-type: image/gif
+X-Comment: Origin is null because the redirect target is on a different origin/
+X-Comment: See "CORS 7.1.7 Generic Cross-Origin Request Algorithms,"
+X-Comment: http://www.w3.org/TR/cors/#redirect-steps
+X-Comment: "If the request URL origin is not same origin with the original URL origin, set
+X-Comment: source origin to a globally unique identifier (becomes "null" when transmitted)."
+Access-Control-Allow-Origin: null
+Access-Control-Allow-Credentials: true

Powered by Google App Engine
This is Rietveld 408576698