An open API service indexing awesome lists of open source software.

https://github.com/hazcod/cspcollector

Collects CSP reports and builds an exemption database.
https://github.com/hazcod/cspcollector

Last synced: 2 months ago
JSON representation

Collects CSP reports and builds an exemption database.

Awesome Lists containing this project

README

          

# cspcollector
Collects CSP reports and builds an exemption database.

## Testing
```shell
# first run our reporting server
% go run ./...

# now test it out
% curl --data '{
"csp-report": {
"document-uri": "http://example.com/signup.html",
"referrer": "",
"blocked-uri": "http://example.com/css/style.css",
"violated-directive": "style-src cdn.example.com",
"original-policy": "default-src 'none'; style-src cdn.example.com; report-uri /_/csp-reports",
"disposition": "report"
}
}' -v http://localhost:8080

# should now be stored in csp.db
```