make-dev/laravel-security
Drop-in security headers for Laravel 11–13: HSTS, CSP with per-request nonces and strict-dynamic, X-Content-Type-Options, Permissions-Policy, and Subresource Integrity. Includes CSP/SRI violation report endpoints, logging/db storage, and Vapor-friendly SRI manifests.
Composer package renamed from make-dev/security to make-dev/laravel-security. The PHP namespace is unchanged (MakeDev\Security) so application code (use statements, app(\MakeDev\Security\…)::class references, service-provider entries) is unaffected. Update the require entry in your composer.json and reinstall:
composer remove make-dev/security
composer require make-dev/laravel-security
The vendor:publish tag also moves from make-dev-security to make-dev-laravel-security.
composer.json description and broader keyword set so the package surfaces on Packagist searches for Filament, Livewire, Vite, Vapor, Strict CSP, nonce, and XSS protection.composer remove make-dev/security
composer require make-dev/laravel-security
No code changes needed.
Initial release.
A drop-in security headers package for Laravel covering HSTS, CSP, X-Content-Type-Options, Permissions-Policy, and Subresource Integrity, plus first-party endpoints for receiving CSP and SRI violation reports.
'strict-dynamic', [@cspNonce](https://github.com/cspNonce) Blade directive, and optional auto-injection on every <script> tag (catches CMS-rendered raw HTML without per-template plumbing).data-sri-managed tags so third-party SRI noise stays out of reports.script-src / style-src / img-src / font-src / connect-src / media-src.php artisan security:install) with curated CSP presets for GTM, Google Maps, HubSpot, LinkedIn, Stripe, reCAPTCHA, Sentry, Intercom, and more./csp-report and /sri-report endpoints with optional database persistence and defense-in-depth host filtering.```bash composer require make-dev/laravel-security php artisan security:install ```
PHP namespace is MakeDev\Security. See the README for the full feature tour.
How can I help you explore Laravel packages today?