Skip to content

Commit 67da850

Browse files
authored
Fix example CSP report (#210)
* Change CSP report type to `"csp-violation"` * Fix broken JSON
1 parent 222a13d commit 67da850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.src.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ <h2 id="sample-reports">Sample Reports</h2>
876876
Content-Type: application/reports+json
877877

878878
[{
879-
"type": "csp",
879+
"type": "csp-violation",
880880
"age": 10,
881881
"url": "https://example.com/vulnerable-page/",
882882
"user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0",
@@ -896,7 +896,7 @@ <h2 id="sample-reports">Sample Reports</h2>
896896
"date-time": "2014-04-06T13:00:50Z",
897897
"hostname": "www.example.com",
898898
"port": 443,
899-
"effective-expiration-date": "2014-05-01T12:40:50Z"
899+
"effective-expiration-date": "2014-05-01T12:40:50Z",
900900
"served-certificate-chain": [
901901
"-----BEGIN CERTIFICATE-----\n
902902
MIIEBDCCAuygAwIBAgIDAjppMA0GCSqGSIb3DQEBBQUAMEIxCzAJBgNVBAYTAlVT\n

0 commit comments

Comments
 (0)