Improve CORS

This commit is contained in:
Luc Didry
2014-02-28 23:38:34 +01:00
parent f40c8e1195
commit 8953ddf840
+1 -1
View File
@@ -203,7 +203,7 @@ sub startup {
$r->options(sub {
my $c = shift;
$c->res->headers->allow('POST');
$c->res->headers->allow('POST') if (defined($c->config->{allowed_domains}));
$c->render(data => '', status => 204);
});