diff options
-rw-r--r-- | modules/mga-treasurer/manifests/init.pp | 1 | ||||
-rw-r--r-- | modules/mga-treasurer/templates/vhost_mga-treasurer.conf | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/modules/mga-treasurer/manifests/init.pp b/modules/mga-treasurer/manifests/init.pp index edd79ab6..f9f79915 100644 --- a/modules/mga-treasurer/manifests/init.pp +++ b/modules/mga-treasurer/manifests/init.pp @@ -49,6 +49,7 @@ class mga-treasurer( "/${grisbi_filename}" => $grisbi_path, "/static" => '/usr/share/mga-treasurer/static', }, + content => template('mga-treasurer/vhost_mga-treasurer.conf'), require => File[$vhostdir], } diff --git a/modules/mga-treasurer/templates/vhost_mga-treasurer.conf b/modules/mga-treasurer/templates/vhost_mga-treasurer.conf new file mode 100644 index 00000000..763cd87d --- /dev/null +++ b/modules/mga-treasurer/templates/vhost_mga-treasurer.conf @@ -0,0 +1,3 @@ +<FilesMatch "\.json$"> + Header set Access-Control-Allow-Origin "*" +</FilesMatch> |