upgrade flask-cors version
we are using flask-cors 1.10.3 which is a few years old. upgrade to a more recent version
#1 Updated by Pascal Cadotte-Michaud 10 months ago
The old version of flask-cors supported setting `allowed_headers` as a string of coma separated headers.
This configuration does not work anymore.
Our configuration files have all been updated but some users may have custom configuration file with the old syntax.
The following command will show the administrator which files need to be updated:
for f in $(find /etc/*/conf.d -name '*.yml'); do grep -H allow_headers $f; done
The following change should be made:
rest_api: cors: allow_headers: Content-Type, X-Auth-Token
rest_api: cors: allow_headers: ["Content-Type", "X-Auth-Token"]
the allow_headers value is now a yaml list