geggleto/csp-middleware

0.0.1 2016-02-01 17:54 UTC

This package is auto-updated.

Last update: 2024-06-29 03:19:03 UTC


README

CSP Middleware

Extends CSPBuild to provide an invokable interface for PSR-7 Middleware Stacks

Usage

//Examples written to use Slim 3
$cspMiddleware = CSPMiddleware::fromFile('/path/to/source.json');

//App Middleware
$app->add($cspMiddleware);

//Route Middleware
$app->get(''...)->add($cspMiddleware);