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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/cache/resources/xhr-vary-header-subframe.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, 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
OLDNEW
1 <script> 1 <script>
2 function testSameOrigin() 2 function testSameOrigin()
3 { 3 {
4 var req = new XMLHttpRequest; 4 var req = new XMLHttpRequest;
5 req.open("GET", "xhr-vary-header-response.php"); 5 req.open("GET", "http://localhost:8080/cache/resources/xhr-vary-header-respo nse.php");
6 req.onload=function() { parent.postMessage(req.responseText, "http://127.0.0 .1:8000") } 6 req.onload=function() { parent.postMessage(req.responseText, "http://127.0.0 .1:8000") }
7 req.send(); 7 req.send();
8 } 8 }
9 9
10 window.onmessage = function() { testSameOrigin() } 10 window.onmessage = function() { testSameOrigin() }
11 </script> 11 </script>
12 12
13 <button onclick="testSameOrigin()">Make same origin request</button> 13 <button onclick="testSameOrigin()">Make same origin request</button>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698