11 Laravel packages tagged “content-security-policy”
Most downloaded: spatie/laravel-csp, with 14,640,989 downloads and 869 GitHub stars. Ranked by total downloads — use the controls below to sort by stars, most recently updated, or name.
spatie/laravel-csp
Recommended
Trusted maintainer
Add CSP headers to the responses of a Laravel app
869
14,640,989
bepsvpt/secure-headers
Recommended
Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.
549
6,127,825
hdvinnie/laravel-security-headers
Solid choice
Adds security related headers to HTTP response.
1
113,555
stevenmaguire/laravel-middleware-csp
Not advised
Provides support for enforcing Content Security Policy with headers in Laravel responses.
39
107,874
artisanpack-ui/security
Solid choice
Core Laravel security toolkit — input sanitization, output escaping, KSES filtering, security headers, XSS protection, basic rate limiting, and Content Security Policy. Authentication / 2FA / RBAC / file uploads / analytics / compliance live in sibling packages.
1
15,786
sloyakuza/laravel-security-headers
Not advised
Adds security related headers to HTTP response.
13,946
zae/content-security-policy
Not advised
A really easy way to build CSP headers and add them to the response.
7,492
jeffersongoncalves/filament-security-headers
Use with care
Filament settings page for laravel-security-headers: edit the Content Security Policy, response headers and HSTS from the panel, with a report-only mode to try a policy before enforcing it.
1
7,322
audunru/reporting-api
Promising
Receive and handle W3C Reporting API and CSP violation reports in Laravel
1,101
make-dev/laravel-security
Promising
Modern security headers for Laravel — turn-key. Strict CSP with per-request nonces and 'strict-dynamic', Subresource Integrity with smart noise filtering, HSTS, Permissions-Policy. An interactive setup wizard asks which third parties you use (GTM, HubSpot, Stripe, reCAPTCHA, and a dozen more) and wires the right directives automatically. First-party violation reporting endpoints, Filament + Livewire + Vite friendly, Vapor-ready. Laravel 11, 12, 13 on PHP 8.2+.
1
255