X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/74d561810b2bf81617b84bc1581d8b59c359d5c9..a9d42179afd30d7d3291bb1f8b28f19e95da50fd:/source.plp diff --git a/source.plp b/source.plp index 5d445e5..f49c8ed 100644 --- a/source.plp +++ b/source.plp @@ -13,6 +13,7 @@ if ($source =~ s{(?<=\Q.inc.pl\E)/jsonp?$}{} and -r $source) { $converter->indent->space_after->canonical; $header{content_type} = 'application/json'; + $header{'Access-Control-Allow-Origin'} = '*'; $header{content_type} = 'text/plain' if exists $get{debug}; print $_, '(' for $get{callback} // (); print $converter->encode($data);