summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index 0289989..0740837 100644
--- a/index.pl
+++ b/index.pl
@@ -113,6 +113,7 @@ sub handle_request {
my @results = get_results_for( $backend, $station, %opt );
if ( not @results and $template ~~ [qw[json marudor_v1 marudor]] ) {
+ $self->res->headers->access_control_allow_origin('*');
my $json;
if ( $backend eq 'iris' ) {
my @candidates = map { { code => $_->[0], name => $_->[1] } }