Overview of NelmioSecurityBundle features
masterNelmioSecurityBundle provides several security enhancements for Symfony applications, including:
- Content Security Policy (CSP): Mitigates XSS by instructing browsers on which scripts and domains are trusted.
- Signed Cookies: Ensures cookies cannot be modified by the user (note: contents remain visible, they are only signed, not encrypted).
- Clickjacking Protection: Adds
X-Frame-Optionsheaders to prevent your site from being embedded in iframes. Supports per-URL configuration. - External Redirects Detection: Protects against malicious redirects to arbitrary URLs.
- Forced HTTPS/SSL Handling: Forces all requests to use SSL and sends HSTS headers.
- Flexible HTTPS/SSL Handling: Detects logged-in users and redirects them to secure URLs without making session cookies insecure for all users.
- Disable Content Type Sniffing: Forces browsers to use the correct MIME type for scripts, preventing content sniffing.
- Referrer Policy: Adds the
Referrer-Policyheader to control how much referrer information is sent with requests. - XSS Protection (Deprecated): Enables/disables Microsoft XSS Protection for older browsers (IE 8+).