diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-11-30 14:58:35 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-11-30 14:58:35 +0100 |
commit | ba8676b83b2decf2775b7f7a37d601cd08a06807 (patch) | |
tree | dc6da934842c95f9ca46f769a88b7bca6ae9a90f /lib/Travelynx/Controller | |
parent | e9a3e84246d55cf73ff176142991d0b454d0651f (diff) |
status API: Set Access-Control-Allow-Origin to *2.9.3
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-x | lib/Travelynx/Controller/Api.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travelynx/Controller/Api.pm b/lib/Travelynx/Controller/Api.pm index b732810..f31195a 100755 --- a/lib/Travelynx/Controller/Api.pm +++ b/lib/Travelynx/Controller/Api.pm @@ -51,6 +51,8 @@ sub documentation { sub get_v1 { my ($self) = @_; + $self->res->headers->access_control_allow_origin(q{*}); + my $api_action = $self->stash('user_action'); my $api_token = $self->stash('token'); if ( $api_action !~ qr{ ^ (?: status | history | action ) $ }x ) { |