diff --git a/anyway/flask_app.py b/anyway/flask_app.py index a036c093..c4c86c5c 100755 --- a/anyway/flask_app.py +++ b/anyway/flask_app.py @@ -1101,7 +1101,7 @@ def acc_in_area_query(): @app.after_request def add_allow_methods_header(response): if request.path.startswith("/api/news-flash/"): - response.headers['Access-Control-Allow-Methods'] = "GET, POST, PATCH" + response.headers['Access-Control-Allow-Methods'] = "GET, OPTIONS, PATCH" response.headers['Access-Control-Allow-Origin'] = "*" return response