Security Headers Check: What StackShield Inspects

Detects missing headers (CSP, HSTS, X-Frame-Options).

infrastructure security Easy fix 10 minutes

What This Check Detects

Detects missing headers (CSP, HSTS, X-Frame-Options).

Full Documentation

What this check looks for

StackShield requests your pages and reads the response headers, the same set a browser receives on every visit. It checks for the presence and configuration of the headers that instruct the browser how to treat your site: Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, Referrer-Policy and Permissions-Policy.

These are not visible on the page. They are directives sent alongside every response, and their absence is silent.

Why it matters

Security headers are the browser-side half of your defences. HSTS forces every future connection over HTTPS, closing the window where a first request over HTTP can be intercepted. A Content Security Policy limits which scripts can run, which is often the difference between a reflected XSS payload doing nothing and executing in your users' sessions. X-Frame-Options stops your pages being framed for clickjacking.

None of these headers fix a vulnerability in your code. They reduce what an attacker can do with one, and several of them are checked by compliance frameworks and by the security questionnaires enterprise customers send.

What a failed check means

A failed check means one or more of these headers is absent or set to a permissive value. It is rarely an emergency on its own, and it is one of the most common findings on any application, which is exactly why it is worth clearing: it is cheap, it is visible to anyone who inspects your responses, and a missing CSP leaves you without the mitigation that turns a serious XSS bug into a survivable one.

Headers are set once in middleware and apply site-wide.

See the step-by-step remediation: how to fix this.

How to Fix This Issue

Your Laravel app is missing critical security headers like CSP, HSTS, and X-Frame-Options. Learn how to add them with middleware.

Read the full fix guide

Related Security Checks

Free security check

Is your Laravel app exposed right now?

34% of Laravel apps we scan have at least one critical issue, and most teams do not find out until something breaks. The free scan checks your live app in 60 seconds. Then StackShield re-runs every check after each deploy, so a fix you ship today does not quietly regress next week.

18% have debug mode on
72% missing security headers
12% have exposed .env
Scan My App Free No signup for the scan. Continuous monitoring on a 14-day trial, no card.