Skip to content
This repository has been archived by the owner on Nov 12, 2021. It is now read-only.
/ csp-endpoint Public archive

Simple collection endpoint for CSP violation reports

Notifications You must be signed in to change notification settings

c0nrad/csp-endpoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csp-endpoint (no longer maintained)

If you are interested in a fully managed CSP endpoint, https://csper.io will be coming out in the end of 2019. Stay tunned for updates!

Endpoint for collecting CSP violation reports.

Usage

$ csp-endpoint --port 3000 --path '/'
Listening on http://host:3000/
{"csp-report":{"document-uri":"https://catfactspammer.com/","referrer":"",...}
{"csp-report":{"document-uri":"https://catfactspammer.com/","referrer":"",...}
{"csp-report":{"document-uri":"https://catfactspammer.com/","referrer":"",...}

Options:

➜  csp-endpoint git:(master) ✗ csp-endpoint --help

Usage: node csp-endpoint.js [options]

Options:
   --path   The path of the endpoint to collect reports on  [/]
   --port   The port of the endpoint to collect reports on  [3000]

Documentation can be found at Https://github.com/c0nrad/csp-endpoint

Installation

npm install -g csp-endpoint

Express middleware

Express doesn't parse applicaiton/csp-report, so to help express use this middleware:

var csp = require('csp-endpoint');
var express = require('express');
var app = express();
app.use(csp.parser);
...

Future

  • classification

Contact

Stuart Larsen c0nrad.io c0nrad@c0nrad.io

About

Simple collection endpoint for CSP violation reports

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published