diff --git a/content-security-policy/generic/src-trailing-dot.sub.any.js b/content-security-policy/generic/src-trailing-dot.sub.any.js new file mode 100644 index 00000000000000..f2b45a6957c6c4 --- /dev/null +++ b/content-security-policy/generic/src-trailing-dot.sub.any.js @@ -0,0 +1,6 @@ +// 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."); diff --git a/content-security-policy/generic/src-trailing-dot.sub.any.js.sub.headers b/content-security-policy/generic/src-trailing-dot.sub.any.js.sub.headers new file mode 100644 index 00000000000000..4a8ad9c0f5438f --- /dev/null +++ b/content-security-policy/generic/src-trailing-dot.sub.any.js.sub.headers @@ -0,0 +1 @@ +Content-Security-Policy: connect-src {{location[scheme]}}://{{host}}.:{{location[port]}} \ No newline at end of file