Laravel Compliance Scanner: Middleware Headers, Mail & GDPR
Catch exposed PHP banners, missing HSTS/CSP middleware, unaligned SES/Mailgun emails, and Blade template WCAG issues in 10 seconds.
Top 4 Compliance Gaps on Laravel Sites
Laravel + Nginx/Forge setups expose X-Powered-By: PHP and miss CSP, Permissions-Policy, and COOP.
Fix: Add SecurityHeaders middleware and disable expose_php = Off.
Laravel notifications via SES/Postmark lack aligned DMARC p=reject or exceed SPF 10 lookups.
Fix: Verify DKIM alignment on sending subdomain and enforce DMARC.
Blade layouts inject GTM/Hotjar before CMP consent and miss SameSite/Secure flags on custom cookies.
Fix: Set SESSION_SECURE_COOKIE=true and gate third-party analytics.
Blade auth/checkout forms omit explicit <label for="..."> associations.
Fix: Bind every input id to a matching label and add skip navigation.
Laravel Launch Checklist
- Register global SecurityHeaders middleware and set expose_php = Off
- Enforce Secure, HttpOnly, and SameSite=Lax on Laravel session cookies
- Verify SES/Postmark DKIM selectors + DMARC p=reject
- Audit Blade forms for WCAG 2.2 AA labels and color contrast
app/Http/Middleware/SecurityHeaders.php — OWASP Headers
$response->headers->set('Strict-Transport-Security', 'max-age=31536000; includeSubDomains');
$response->headers->set('X-Content-Type-Options', 'nosniff');
$response->headers->set('X-Frame-Options', 'DENY');
$response->headers->set('Referrer-Policy', 'strict-origin-when-cross-origin');
$response->headers->set('Permissions-Policy', 'camera=(), microphone=(), geolocation=()');
$response->headers->set('Cross-Origin-Opener-Policy', 'same-origin');Frequently Asked Questions
Does ComplyPulse audit Laravel session cookie flags?
Yes. Our Privacy & Cookie analyzer inspects initial Set-Cookie headers for Secure, HttpOnly, and SameSite flags automatically.