summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAlexander Zagaynov <azagayno@redhat.com>2017-08-30 16:43:42 +0200
committerAlexander Zagaynov <azagayno@redhat.com>2017-08-30 16:43:42 +0200
commit7277ab699715a2db809b05549e9272197362b99c (patch)
tree42d9684686f46e976eb18348ce1db3e6d4ff9335 /roles
parent6bf432ff2d21ec8e8c8dd78f00dab8036359ae52 (diff)
downloadopenshift-7277ab699715a2db809b05549e9272197362b99c.tar.gz
openshift-7277ab699715a2db809b05549e9272197362b99c.tar.bz2
openshift-7277ab699715a2db809b05549e9272197362b99c.tar.xz
openshift-7277ab699715a2db809b05549e9272197362b99c.zip
escape also custom_cors_origins
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_master/templates/master.yaml.v1.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_master/templates/master.yaml.v1.j2 b/roles/openshift_master/templates/master.yaml.v1.j2
index 0cf20ce85..8e373f4db 100644
--- a/roles/openshift_master/templates/master.yaml.v1.j2
+++ b/roles/openshift_master/templates/master.yaml.v1.j2
@@ -62,7 +62,7 @@ corsAllowedOrigins:
- (?i)\A{{ origin | regex_escape() }}\z {# anchor with start (\A) and end (\z) of the string, make the check case insensitive ((?i)) and escape hostname #}
{% endfor %}
{% for custom_origin in openshift.master.custom_cors_origins | default("") %}
- - {{ custom_origin }}
+ - (?i)\A{{ custom_origin | regex_escape() }}\z {# anchor with start (\A) and end (\z) of the string, make the check case insensitive ((?i)) and escape hostname #}
{% endfor %}
{% if 'disabled_features' in openshift.master %}
disabledFeatures: {{ openshift.master.disabled_features | to_json }}