CORS config won't work

Hello,

I got an Librenms image from git ( https://github.com/librenms/packer-builds/releases/tag/1.63 ), but the CORS config seem to not work.

$config['api']['cors']['enabled'] = true;
$config['api']['cors']['origin'] = ['*'];
$config['api']['cors']['maxage'] = '86400';
$config['api']['cors']['allowmethods'] = ['POST', 'GET', 'PUT', 'DELETE', 'PATCH'];
$config['api']['cors']['allowheaders'] = ['Origin', 'X-Requested-With', 'Content-Type', 'Accept', 'X-Auth- 

Token’];
$config[‘api’][‘cors’][‘exposeheaders’] = [‘Cache-Control’, ‘Content-Language’, ‘Content-Type’, ‘Expires’,
‘Last-Modified’, ‘Pragma’];

This is my CORS config in config.php, I’ve followed the documentation. But It change nothing, I always have a CORS error when I’m trying to use the API.

What’s the problem ?
Thanks