Cannot activate parameter cors.config
To override container variables you have to enable this line in sites/default/settings.php (is enabled by default)

$settings['container_yamls'][] = __DIR__ . '/services.yml';


and then copy sites/default/default.services.yml to sites/default/services.yml.

Now you can configure the variables in services.yml.