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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?php 1 <?php
2 header("Vary: Origin"); 2 header("Vary: Origin");
3 header("Cache-Control: max-age=31536000"); 3 header("Cache-Control: max-age=31536000");
4 if (isset($_SERVER['HTTP_ORIGIN'])) { 4 if (isset($_SERVER['HTTP_ORIGIN'])) {
5 header("Access-Control-Allow-Origin: http://127.0.0.1:8000"); 5 header("Access-Control-Allow-Origin: *");
6 echo "Cross origin "; 6 echo "Origin header value is " . $_SERVER['HTTP_ORIGIN'];
7 } else { 7 } else {
8 echo "Same origin "; 8 echo "No origin header";
9 } 9 }
10 ?> 10 ?>
11 response
OLDNEW
« 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