summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-05-10 11:31:07 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-05-10 11:31:07 +0200
commit4c0699e1ebeb4998a1c9204cb8ea2b20787c80fc (patch)
tree04b54abd9702d5a507b607af43a5115a8e1bac98 /index.pl
parent0a3003a1463f97d4d9e91fa207b49c51fc009c0b (diff)
the error page should also support CORS
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] } }