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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/resources/access-control-sandboxed-iframe-allow-origin-null-iframe.html

Issue 20735002: CORS: Fix the handling of redirected request containing Origin null. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <body>
3 <pre id='console'></pre>
4 <script type="text/javascript">
5
6 document.getElementById('console').innerHTML = (function() {
7 var xhr = new XMLHttpRequest;
8
9 try {
10 xhr.open("GET", "http://127.0.0.1:8000/xmlhttprequest/resources/access-c ontrol-sandboxed-iframe-allow-origin-null.cgi", false);
11 } catch(e) {
12 return "FAIL: Exception thrown. Sandboxed iframe XHR access is not allow ed in 'open'. [" + e.message + "].";
13 }
14
15 try {
16 xhr.send();
17 } catch(e) {
18 return "FAIL: Exception thrown. Sandboxed iframe XHR access is not allow ed in 'send'. [" + e.message + "].";
19 }
20
21 return xhr.responseText;
22 })();
23 </script>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698