aboutsummaryrefslogtreecommitdiffstats
path: root/modules/youri-check
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2016-10-05 23:24:57 +0200
committerOlivier Blin <dev@blino.org>2016-10-05 23:27:03 +0200
commiteda8a9ae9af5540a33e3a7885e9fec1b33654cd5 (patch)
treeb336fd3a3c8ae9d465ef5209a251be48c53ec3f2 /modules/youri-check
parent7a1cfd37f4b40541b23430ebf72e67833653f03e (diff)
downloadpuppet-eda8a9ae9af5540a33e3a7885e9fec1b33654cd5.tar
puppet-eda8a9ae9af5540a33e3a7885e9fec1b33654cd5.tar.gz
puppet-eda8a9ae9af5540a33e3a7885e9fec1b33654cd5.tar.bz2
puppet-eda8a9ae9af5540a33e3a7885e9fec1b33654cd5.tar.xz
puppet-eda8a9ae9af5540a33e3a7885e9fec1b33654cd5.zip
Authorize CORS on check for pkgsubmit origin
For dependencies.rss files that will be loaded through XMLHttpRequest
Diffstat (limited to 'modules/youri-check')
-rw-r--r--modules/youri-check/manifests/init.pp1
-rw-r--r--modules/youri-check/templates/vhost_check.conf1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/youri-check/manifests/init.pp b/modules/youri-check/manifests/init.pp
index a57b67e5..001497d4 100644
--- a/modules/youri-check/manifests/init.pp
+++ b/modules/youri-check/manifests/init.pp
@@ -76,6 +76,7 @@ class youri-check {
vhost => $base::vhost,
use_ssl => true,
location => $outdir,
+ content => template((youri-check/vhost_check.conf'),
}
}
diff --git a/modules/youri-check/templates/vhost_check.conf b/modules/youri-check/templates/vhost_check.conf
new file mode 100644
index 00000000..42c391d0
--- /dev/null
+++ b/modules/youri-check/templates/vhost_check.conf
@@ -0,0 +1 @@
+Header set Access-Control-Allow-Origin "pkgsubmit.<%= domain %>"