Skip to content

Commit

Permalink
Merge pull request #1 from lgtml/lgtml/SecHdrIfBug
Browse files Browse the repository at this point in the history
Fix small bug: missing if statement for security headers
  • Loading branch information
ansibleguy authored Jun 20, 2024
2 parents ff591e9 + beb0a66 commit 41aa8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/etc/haproxy/conf.d/inc/security_only_fe.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if cnf.security.headers | bool %}
# Security headers
{% for header, value in defaults_security_headers.items() %}
http-after-response add-header {{ header }} "{{ value }}" !{ res.hdr({{ header }}) -m found }
http-after-response add-header {{ header }} "{{ value }}" if !{ res.hdr({{ header }}) -m found }
{% endfor %}
{% endif %}
{% if cnf.security.fingerprint_ssl | bool %}
Expand Down

0 comments on commit 41aa8b0

Please sign in to comment.