Skip to content

Commit

Permalink
Fix example CSP report (#210)
Browse files Browse the repository at this point in the history
* Change CSP report type to `"csp-violation"`
* Fix broken JSON
  • Loading branch information
aaronshim authored May 11, 2020
1 parent 222a13d commit 67da850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ <h2 id="sample-reports">Sample Reports</h2>
Content-Type: application/reports+json

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

0 comments on commit 67da850

Please sign in to comment.