Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/geggleto/geggleto-csp-middleware

Middleware for CSP by Paragoonie
https://github.com/geggleto/geggleto-csp-middleware

Last synced: 5 days ago
JSON representation

Middleware for CSP by Paragoonie

Awesome Lists containing this project

README

        

# CSP Middleware

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

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

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

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