Append debug msg (#1765)

This commit is contained in:
Christophe Maudoux 2019-06-04 16:19:01 +02:00
parent 3b68263761
commit 18dd7c2c41

View File

@ -793,7 +793,10 @@ sub sendHtml {
'Expires' => '0'; # Proxies
my @cors = split /;/, $self->cors;
push @{ $res->[1] }, @cors if $self->conf->{corsEnabled};
if ( $self->conf->{corsEnabled} ) {
push @{ $res->[1] }, @cors;
$self->logger->debug("Apply following CORS policy : @cors");
}
# Set authorized URL for POST
my $csp = $self->csp . "form-action " . $self->conf->{cspFormAction};