summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-11-30 14:58:35 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-11-30 14:58:35 +0100
commitba8676b83b2decf2775b7f7a37d601cd08a06807 (patch)
treedc6da934842c95f9ca46f769a88b7bca6ae9a90f /lib/Travelynx/Controller
parente9a3e84246d55cf73ff176142991d0b454d0651f (diff)
status API: Set Access-Control-Allow-Origin to *2.9.3
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-xlib/Travelynx/Controller/Api.pm2
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 ) {