diff --git a/templates/vhost-gen/apache22.yml b/templates/vhost-gen/apache22.yml index 35c4e279..e7d2e5da 100644 --- a/templates/vhost-gen/apache22.yml +++ b/templates/vhost-gen/apache22.yml @@ -150,7 +150,7 @@ features: xdomain_request: | # Allow cross domain request from these hosts - SetEnvIf Origin "__REGEX__" AccessControlAllowOrigin=$0$1 + SetEnvIf Origin "__REGEX__" AccessControlAllowOrigin=$0 Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT" Header always set Access-Control-Max-Age "0" diff --git a/templates/vhost-gen/apache24.yml b/templates/vhost-gen/apache24.yml index 9befc55b..53de2a70 100644 --- a/templates/vhost-gen/apache24.yml +++ b/templates/vhost-gen/apache24.yml @@ -167,7 +167,7 @@ features: xdomain_request: | # Allow cross domain request from these hosts - SetEnvIf Origin "__REGEX__" AccessControlAllowOrigin=$0$1 + SetEnvIf Origin "__REGEX__" AccessControlAllowOrigin=$0 Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT" Header always set Access-Control-Max-Age "0"