From 6eab82b9ef752e4a593d0d021eac9417468e1035 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 10 May 2015 11:32:32 +0200 Subject: add CORS support --- index.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/index.pl b/index.pl index 23ccef4..a2b814b 100644 --- a/index.pl +++ b/index.pl @@ -368,6 +368,7 @@ sub render_json { } } + $self->res->headers->access_control_allow_origin('*'); $self->render( json => { error => $errstr, -- cgit v1.2.3