def set_cors_config(app):
    """
    Flask-Cors (3.x.x) extension set the config as CORS_*,
     But we'll hold the config in CORS key.
     This function will convert them to CORS_* values
    :param app:
    :return:
    """
    if 'CORS' in app.config:
        for k, v in app.config['CORS'].items():
            _ = 'CORS_' + k.upper()
            if _ not in app.config:
                app.config[_] = v
