Skip to content

Commit

Permalink
status API: Set Access-Control-Allow-Origin to *
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Nov 30, 2024
1 parent e9a3e84 commit ba8676b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Travelynx/Controller/Api.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit ba8676b

Please sign in to comment.