We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f572f2 commit 3831744Copy full SHA for 3831744
middleware/policy.test
@@ -44,8 +44,10 @@ test (`Content-Security-Policy: report-to` , async t => {
44
= (await fetch ('http://localhost:8181/'))
45
.headers.get ('content-security-policy')
46
47
+ , url = 'https://ffb4d440b7878d6a1d371906dbe25fcd.report-uri.com/r/d/csp/enforce'
48
- t.ok ( policy.includes`report-to https://ffb4d440b7878d6a1d371906dbe25fcd.report-uri.com/r/d/csp/enforce` )
49
+
50
+ t.ok ( policy.includes (`report-to ${url}`))
51
52
server.close ``
53
t.end ()
0 commit comments