summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-05-10 11:32:32 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-05-10 11:32:32 +0200
commit6eab82b9ef752e4a593d0d021eac9417468e1035 (patch)
treea3e39a0c5ac91cb1eeb85759ccec7c46aaa5b463 /index.pl
parent2cf85576e935e3667ce54c7d263105ec43cc8dec (diff)
add CORS support
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl1
1 files changed, 1 insertions, 0 deletions
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,