aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mga-treasurer
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-01 12:59:04 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-01 12:59:04 +0000
commitfd14f7063cf6158ecb0443d1d087d9a9cc34783d (patch)
tree3ad2832ed50e5cf31b1598201a12e7ce2750713c /modules/mga-treasurer
parent7727732e9e728d23385a4670f8f05eb644178fc4 (diff)
downloadpuppet-fd14f7063cf6158ecb0443d1d087d9a9cc34783d.tar
puppet-fd14f7063cf6158ecb0443d1d087d9a9cc34783d.tar.gz
puppet-fd14f7063cf6158ecb0443d1d087d9a9cc34783d.tar.bz2
puppet-fd14f7063cf6158ecb0443d1d087d9a9cc34783d.tar.xz
puppet-fd14f7063cf6158ecb0443d1d087d9a9cc34783d.zip
mga-treasurer: set Access-Control-Allow-Origin header for .json files
Diffstat (limited to 'modules/mga-treasurer')
-rw-r--r--modules/mga-treasurer/manifests/init.pp1
-rw-r--r--modules/mga-treasurer/templates/vhost_mga-treasurer.conf3
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>