fixed custom root headers in proxy template
This commit is contained in:
parent
f1dca5629a
commit
8d2f3e7e5b
|
@ -16,11 +16,6 @@
|
|||
{% endif %}
|
||||
{% if item.root_custom_headers is defined %}
|
||||
#headers
|
||||
{% for header in item.root_custom_headers %}
|
||||
{{ header }}
|
||||
{% endfor %}
|
||||
{% if header.predef is defined and header.predef == 'none' %}
|
||||
{% else %}
|
||||
{% if header.permission_policy is defined and header.permission_policy == 'none' %}
|
||||
{% else %}
|
||||
add_header Permissions-Policy "geolocation=(),interest-cohort=()";
|
||||
|
@ -57,7 +52,6 @@
|
|||
{% else %}
|
||||
add_header X-Robots-Tag "{{ header.robots | default('none') }}";
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue