OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <head> |
| 4 <title>test wildcard host name matching (www*.web-platform.test is bad, *www
.web-platform.test is bad)</title> |
| 5 <script src='/resources/testharness.js'></script> |
| 6 <script src='/resources/testharnessreport.js'></script> |
| 7 <script src='wildcardHostTestFailure.js'></script> |
| 8 <script> |
| 9 var head = document.getElementsByTagName('head')[0]; |
| 10 var script = document.createElement('script'); |
| 11 script.type = 'text/javascript'; |
| 12 script.src = "http://www." + location.hostname + ":" + location.port + "/c
ontent-security-policy/generic/wildcardHostTestSuceeds.js"; |
| 13 head.appendChild(script); |
| 14 </script> |
| 15 </head> |
| 16 <body> |
| 17 <h1>test wildcard host name matching (www*.web-platform.test is bad, *www.we
b-platform.test is bad)</h1> |
| 18 <div id='log'></div> |
| 19 <script async defer src='../support/checkReport.sub.js?reportField=violated-
directive&reportValue=script-src%20%27self%27%20*w.{{host}}:{{ports[http][0]}}%2
0w*.{{host}}:{{ports[http][0]}}%20%27unsafe-inline%27'></script> |
| 20 </body> |
| 21 </html> |
OLD | NEW |