[Bps-public-commit] RT-Extension-rt_cpan_org branch, master, updated. ea4266da27c06cd04719a7bfff7b7b8e255d3b81

Thomas Sibley trs at bestpractical.com
Wed Aug 28 17:57:51 EDT 2013


The branch, master has been updated
       via  ea4266da27c06cd04719a7bfff7b7b8e255d3b81 (commit)
      from  a12663072cd643c2a6fa0ddcc5d5037acb30afe3 (commit)

Summary of changes:
 html/Public/bugs-per-dist.json | 2 ++
 1 file changed, 2 insertions(+)

- Log -----------------------------------------------------------------
commit ea4266da27c06cd04719a7bfff7b7b8e255d3b81
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Aug 28 14:57:28 2013 -0700

    Allow cross-origin requests to bugs-per-dist.json
    
    Dead simple usage from JS now.

diff --git a/html/Public/bugs-per-dist.json b/html/Public/bugs-per-dist.json
index 508cf75..56c82f4 100644
--- a/html/Public/bugs-per-dist.json
+++ b/html/Public/bugs-per-dist.json
@@ -3,6 +3,8 @@ inherit => undef
 </%flags>
 <%init>
 $r->content_type("application/json");
+$r->headers_out->{'Access-Control-Allow-Origin'}  = '*';
+$r->headers_out->{'Access-Control-Allow-Methods'} = 'GET';
 
 my $fname = '';
 foreach my $test ( map "$_/Public/bugs-per-dist.data-json", map $_->[1], $m->interp->comp_root_array ) {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list