From 4c0699e1ebeb4998a1c9204cb8ea2b20787c80fc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 10 May 2015 11:31:07 +0200 Subject: the error page should also support CORS --- index.pl | 1 + 1 file changed, 1 insertion(+) 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] } } -- cgit v1.2.3