From fed62641ad500f6e0c3fc38eeaf8e737d5c7ab40 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Tue, 25 Apr 2017 19:48:29 +0100 Subject: [PATCH] Change to * rule for CORS --- lib/Pear/LocalLoop.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');