diff --git a/flask_cors/core.py b/flask_cors/core.py index ef66aff..439879a 100644 --- a/flask_cors/core.py +++ b/flask_cors/core.py @@ -354,7 +354,7 @@ def serialize_options(opts): for key in opts.keys(): if key not in DEFAULT_OPTIONS: - LOG.warn("Unknown option passed to Flask-CORS: %s", key) + LOG.warning("Unknown option passed to Flask-CORS: %s", key) # Ensure origins is a list of allowed origins with at least one entry. options['origins'] = sanitize_regex_param(options.get('origins'))