Socket
Book a DemoInstallSign in
Socket

csp-endpoint

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csp-endpoint

Endpoint for CSP violation reports

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

csp-endpoint

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

Keywords

CSP

FAQs

Package last updated on 27 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.