Lack of Security Headers
Summary
Lack of Security Headers describes important HTTP security headers that are missing from the application's responses.
Testing methodology
Description
Lack of Security Headers describes the situation in which the web application does not have recommended security headers in place that can help protect against various attacks such as XSS, XSLeaks, Clickjacking, and more.
Remediations
- It's recommended to return the following security headers in the server's responses:
- Add the Cache-Control header in response headers returning from the server
- Add the X-Frame-Options header in response headers returning from the server
- Add the Content-Security-Policy header in response headers returning from the server
- Add the Strict-Transport-Security header in response headers returning from the server
- Add the Permissions-Policy header in response headers returning from the server
- Add the X-Content-Type-Options header in response headers returning from the server
- Add the Referrer-Policy header in response headers returning from the server
- Add the Cross-Origin-Resource-Policy header in response headers returning from the server
- Add the Cross-Origin-Embedder-Policy header in response headers returning from the server
- Add the Cross-Origin-Opener-Policy header in response headers returning from the server
- For more information you may follow the OWASP Secure Headers Project.
Usually follows
Usually precedes
Affected components
- Client Side