OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script> | |
5 var req = new XMLHttpRequest(); | |
6 req.open('GET', location); | |
7 try { | |
8 req.send(); | |
9 window.parent.postMessage('FAIL', '*'); | |
10 } catch (e) { | |
11 window.parent.postMessage(e.name, '*'); | |
12 } | |
13 </script> | |
14 </head> | |
15 <body> | |
16 Documents loaded from file: shouldn't be able to access themselves via XHR. | |
17 </body> | |
18 </html> | |
OLD | NEW |