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 9e2d4cd commit 0f572f2Copy full SHA for 0f572f2
middleware/policy.test
@@ -40,7 +40,9 @@ test (`Content-Security-Policy: report-to` , async t => {
40
, response = await
41
fetch ('http://localhost:8181/')
42
43
- , policy = response.headers.get ('content-security-policy')
+ , policy
44
+ = (await fetch ('http://localhost:8181/'))
45
+ .headers.get ('content-security-policy')
46
47
48
t.ok ( policy.includes`report-to https://ffb4d440b7878d6a1d371906dbe25fcd.report-uri.com/r/d/csp/enforce` )
0 commit comments