OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
2 <head> | |
3 <script> | |
4 var req = new XMLHttpRequest(); | |
5 req.open('GET', location); | |
Mike West
2015/05/17 08:40:48
Nit: s/location/window.location.href/
Nit: Ideall
| |
6 req.send(); | |
7 console.log(req.responseText); | |
Mike West
2015/05/17 08:40:48
Please convert this into an ASSERTion.
| |
8 </script> | |
9 </head> | |
10 <body> | |
11 Documents loaded from file: shouldn't be able to access themselves via XHR. | |
12 </body> | |
13 </html> | |
OLD | NEW |