Explorar el Código

escape also custom_cors_origins

Alexander Zagaynov hace 7 años
padre
commit
7277ab6997
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      roles/openshift_master/templates/master.yaml.v1.j2

+ 1 - 1
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 }}