From f96c91ede373400a2239bcbb8a8b8722be9706e8 Mon Sep 17 00:00:00 2001 From: Atalya Alon <20992625+atalyaalon@users.noreply.github.com> Date: Thu, 25 Apr 2024 03:55:26 +0300 Subject: [PATCH] Update app_and_db.py --- anyway/app_and_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anyway/app_and_db.py b/anyway/app_and_db.py index eeab8045..b53143ba 100644 --- a/anyway/app_and_db.py +++ b/anyway/app_and_db.py @@ -38,7 +38,7 @@ def get_cors_config() -> dict: r"/api/infographics-data": {"origins": "*"}, r"/api/infographics-data-by-location": {"origins": "*"}, r"/api/gps-to-location": {"origins": "*"}, - r"/api/news-flash": {"origins": "*", "methods": ["GET", "PATCH", "OPTIONS"], "supports_credentials": True}, + r"/api/news-flash/*": {"origins": "*", "methods": ["GET", "PATCH", "OPTIONS"], "supports_credentials": True}, r"/api/news-flash-v2": {"origins": "*"}, r"/api/embedded-reports": {"origins": "*"}, r"/api/streets": {"origins": "*"},