diff options
author | Alexander Zagaynov <azagayno@redhat.com> | 2017-08-30 16:43:42 +0200 |
---|---|---|
committer | Alexander Zagaynov <azagayno@redhat.com> | 2017-08-30 16:43:42 +0200 |
commit | 7277ab699715a2db809b05549e9272197362b99c (patch) | |
tree | 42d9684686f46e976eb18348ce1db3e6d4ff9335 | |
parent | 6bf432ff2d21ec8e8c8dd78f00dab8036359ae52 (diff) | |
download | openshift-7277ab699715a2db809b05549e9272197362b99c.tar.gz openshift-7277ab699715a2db809b05549e9272197362b99c.tar.bz2 openshift-7277ab699715a2db809b05549e9272197362b99c.tar.xz openshift-7277ab699715a2db809b05549e9272197362b99c.zip |
escape also custom_cors_origins
-rw-r--r-- | roles/openshift_master/templates/master.yaml.v1.j2 | 2 |
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 }} |