Do not set -Access-Control-Allow-Origin header when answering Ajax call (#1519)

This commit is contained in:
Clément OUDOT 2018-10-15 14:20:49 +02:00
parent 66313e486a
commit e269d75789

View File

@ -216,8 +216,7 @@ sub do {
return [ return [
401, 401,
[ [
'WWW-Authenticate' => "SSO " . $self->conf->{portal}, 'WWW-Authenticate' => "SSO " . $self->conf->{portal}
'Access-Control-Allow-Origin' => '*'
], ],
[qq'{"result":0,"error":$err}'] [qq'{"result":0,"error":$err}']
]; ];