summaryrefslogtreecommitdiff
path: root/include/security_headers.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/security_headers.hpp')
-rw-r--r--include/security_headers.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/security_headers.hpp b/include/security_headers.hpp
index 966fbdf59c..828a44c2a5 100644
--- a/include/security_headers.hpp
+++ b/include/security_headers.hpp
@@ -25,7 +25,7 @@ inline void addSecurityHeaders(const crow::Request& req [[maybe_unused]],
"mode=block");
res.addHeader("X-Content-Type-Options", "nosniff");
- if (!bmcwebInsecureDisableXssPrevention)
+ if (bmcwebInsecureDisableXssPrevention == 0)
{
res.addHeader("Content-Security-Policy", "default-src 'none'; "
"img-src 'self' data:; "