Block injected scripts and forced HTTP downgrades
These two headers are the foundation of modern web security. Together they stop attackers from injecting malicious scripts into your pages and from intercepting traffic by downgrading visitors to HTTP.
-
Content-Security-Policy
Tells the browser exactly which scripts are allowed to run, blocking any script an attacker tries to inject.
-
Strict-Transport-Security
Forces every visit to use HTTPS, preventing the “downgrade to HTTP” trick used on public Wi-Fi attacks.