OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js-test-resources/js-test-pre.js"></script> | 4 <script src="../../js-test-resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script type="text/javascript"> | 7 <script type="text/javascript"> |
8 description("Check that exact matching is used when comparing a request's origin
ating url and the value provided by Access-Control-Allow-Origin."); | 8 description("Check that exact matching is used when comparing a request's origin
ating url and the value provided by Access-Control-Allow-Origin."); |
9 var urlTemplate = "http://127.0.0.1:8000/xmlhttprequest/resources/access-control
-allow-lists.php?origin="; | 9 var urlTemplate = "http://127.0.0.1:8000/xmlhttprequest/resources/access-control
-allow-lists.php?origin="; |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 shouldFail("\0" + location.protocol + "//" + location.host); | 61 shouldFail("\0" + location.protocol + "//" + location.host); |
62 shouldFail("null " + location.protocol + "//" + location.host); | 62 shouldFail("null " + location.protocol + "//" + location.host); |
63 shouldFail('http://example.net'); | 63 shouldFail('http://example.net'); |
64 shouldFail('null'); | 64 shouldFail('null'); |
65 shouldFail(''); | 65 shouldFail(''); |
66 shouldFail(location.href); | 66 shouldFail(location.href); |
67 shouldFail(location.href.replace(/\/[^\/]*$/, '/')); | 67 shouldFail(location.href.replace(/\/[^\/]*$/, '/')); |
68 shouldFail(location.href.replace(location.hostname, "localhost")); | 68 shouldFail(location.href.replace(location.hostname, "localhost")); |
69 | 69 |
70 </script> | 70 </script> |
71 <script src="../../js-test-resources/js-test-post.js"></script> | |
72 </body> | 71 </body> |
73 </html> | 72 </html> |
OLD | NEW |