diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-05-10 11:31:07 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-05-10 11:31:07 +0200 |
commit | 4c0699e1ebeb4998a1c9204cb8ea2b20787c80fc (patch) | |
tree | 04b54abd9702d5a507b607af43a5115a8e1bac98 | |
parent | 0a3003a1463f97d4d9e91fa207b49c51fc009c0b (diff) |
the error page should also support CORS
-rw-r--r-- | index.pl | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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] } } |