diff --git a/lib/Pear/LocalLoop.pm b/lib/Pear/LocalLoop.pm index d8231d3..2963ac6 100644 --- a/lib/Pear/LocalLoop.pm +++ b/lib/Pear/LocalLoop.pm @@ -115,7 +115,7 @@ sub startup { $api_public_get->options('*' => sub { my $self = shift; - $self->res->headers->header('Access-Control-Allow-Origin'=> 'http://localhost:7000'); + $self->res->headers->header('Access-Control-Allow-Origin'=> '*'); $self->res->headers->header('Access-Control-Allow-Credentials' => 'true'); $self->res->headers->header('Access-Control-Allow-Methods' => 'GET, OPTIONS, POST, DELETE, PUT'); $self->res->headers->header('Access-Control-Allow-Headers' => 'Content-Type, X-CSRF-Token');