Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/geggleto/geggleto-csp-middleware
- Owner: geggleto
- License: mit
- Created: 2016-02-01T17:46:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-01T17:57:20.000Z (almost 9 years ago)
- Last Synced: 2023-08-16T22:17:03.669Z (over 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```