mirror of
https://framagit.org/fiat-tux/hat-softwares/lutim.git
synced 2026-08-07 01:12:49 +02:00
Improve CORS
This commit is contained in:
+1
-1
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user