Skip to content

Commit 5a988bd

Browse files
committed
review comments
1 parent 4bb07e7 commit 5a988bd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

index.bs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,10 +1643,10 @@ this algorithm returns normally if compilation is allowed, and throws a
16431643
};
16441644
</pre>
16451645

1646-
When a directive that impacts [=script-like=] [=request/destinations=] has a `report-hash` value,
1647-
and a [=/request=] with a [=script-like=] [=request/destination=] is fetched, a <dfn export>csp
1648-
hash report</dfn> will be generated and sent out to a reporting endpoint associated with the <a
1649-
for="/">policy</a>.
1646+
When a directive that impacts [=script-like=] [=request/destinations=] has a `report-sha256`,
1647+
`report-sha384` or `report-sha512` value, and a [=/request=] with a [=script-like=]
1648+
[=request/destination=] is fetched, a <dfn export>csp hash report</dfn> will be generated and
1649+
sent out to a reporting endpoint associated with the <a for="/">policy</a>.
16501650

16511651
<p><a>csp hash reports</a> have the <a>report type</a> "csp-hash".</p>
16521652

@@ -1681,7 +1681,8 @@ Content-Type: application/reports+json
16811681
"document_url": "https://example.com/",
16821682
"subresource_url": "https://example.com/main.js",
16831683
"hash": "sha256-badbeef",
1684-
"type": "subresource"
1684+
"type": "subresource",
1685+
"destination": "script"
16851686
}
16861687
}]
16871688
```

0 commit comments

Comments
 (0)