diff options
author | Olivier Blin <dev@blino.org> | 2016-10-05 23:24:57 +0200 |
---|---|---|
committer | Olivier Blin <dev@blino.org> | 2016-10-05 23:27:03 +0200 |
commit | eda8a9ae9af5540a33e3a7885e9fec1b33654cd5 (patch) | |
tree | b336fd3a3c8ae9d465ef5209a251be48c53ec3f2 /modules | |
parent | 7a1cfd37f4b40541b23430ebf72e67833653f03e (diff) | |
download | puppet-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')
-rw-r--r-- | modules/youri-check/manifests/init.pp | 1 | ||||
-rw-r--r-- | modules/youri-check/templates/vhost_check.conf | 1 |
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 %>" |