Auto quote headers values
parent
2cd559b87a
commit
0e33d1b372
|
@ -69,7 +69,7 @@ server {
|
|||
{% block template_headers %}
|
||||
# --> Custom headers
|
||||
{% for key, value in __headers.iteritems() %}
|
||||
add_header {{ key }} {{ value | replace(' always', '') }}{% if nginx_version.stdout | version_compare('1.7.5', 'ge') and ' always' in value %} always{% endif %};
|
||||
add_header {{ key }} "{{ value | replace(' always', '') }}"{% if nginx_version.stdout | version_compare('1.7.5', 'ge') and ' always' in value %} always{% endif %};
|
||||
{% endfor %}
|
||||
# <-- Custom headers
|
||||
{% endblock %}
|
||||
|
|
|
@ -42,7 +42,7 @@ nginx_templates_no_dir:
|
|||
nginx_servers_default_headers:
|
||||
'X-Frame-Options': 'DENY always'
|
||||
'X-Content-Type-Options': 'nosniff always'
|
||||
'X-XSS-Protection': '"1; mode=block"'
|
||||
'X-XSS-Protection': '1; mode=block'
|
||||
|
||||
nginx_upstream_php56: 'php56'
|
||||
nginx_upstream_php70: 'php70'
|
||||
|
|
Loading…
Reference in New Issue