Unverified Commit ba8676b8 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

status API: Set Access-Control-Allow-Origin to *

parent e9a3e842
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 ) {