Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /content-security-policy/generic/src-trailing-dot.sub.any.html - WPT Dashboard Interop Dashboard
- /content-security-policy/generic/src-trailing-dot.sub.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /content-security-policy/generic/src-trailing-dot.sub.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /content-security-policy/generic/src-trailing-dot.sub.any.worker.html - WPT Dashboard Interop Dashboard
// META: global=window,worker
promise_test(t => {
return fetch("{{location[scheme]}}://{{host}}.:{{location[port]}}"
+ "/content-security-policy/support/resource.py");
}, "Fetch from host with trailing dot should be allowed by CSP.");