From 8a8e28e3e6a0f74b7bd8fe459433f1cdd5e2bf1c Mon Sep 17 00:00:00 2001 From: Atalya Alon <20992625+atalyaalon@users.noreply.github.com> Date: Thu, 25 Apr 2024 03:45:47 +0300 Subject: [PATCH] Update flask_app.py --- anyway/flask_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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