Your app does not require a secure connection
Missing HTTP Strict Transport Security
What this means
Your app does not tell browsers to talk to it over a secure connection only. A user's first request can travel in the clear โ along with whatever they type.
Why it matters
On an open network โ a cafe, an airport, a hotel โ a stranger can intercept or alter such a request. The user notices nothing.
When this is not a problem
For apps reachable only on an internal network the risk is considerably lower.
How to fix it
- Add a Strict-Transport-Security header to every response.
- Set a lifetime of at least one year (max-age=31536000).
Prompt for your AI agent
Add a Strict-Transport-Security header with a lifetime of at least a year to all responses so browsers always use a secure connection.
How to verify the fix: repeat the request and confirm the header is present
Classification: CWE-319 ยท A02:2021
References: cwe.mitre.org