2017 © Pedro Peláez
 

silverstripe-module silverstripe-csp-logging

Logs CSP violations through a logger

image

camspiers/silverstripe-csp-logging

Logs CSP violations through a logger

  • Saturday, February 8, 2014
  • by camspiers
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SilverStripe Content-Security-Policy Logging

Build Status, (*1)

Allows the logging of CSP violations in SilverStripe, (*2)

Installation (with composer)

composer require camspiers/silverstripe-csp-logging

Usage

Provide an instance of Psr\Log\LoggerInterface to the CSP controller:, (*3)

  1. Create a file called mysite/_config/csp.yml and add your logging service to the controller
Injector:
  Camspiers\CSP\Controller:
    constructor:
      0: %$Monolog
  1. Set your Content-Security-Policy headers
  2. Add "report-uri /csp-report/;" to the Content-Security-Policy header to log violations through SilverStripe

The Versions

08/02 2014

dev-master

9999999-dev

Logs CSP violations through a logger

  Sources   Download

MIT

The Requires

 

The Development Requires