From 8d0bbfbb8f696a20bf6cc8586e7b6eeff9bdbe82 Mon Sep 17 00:00:00 2001 From: Marcin-Ramotowski Date: Tue, 15 Apr 2025 20:53:08 +0000 Subject: [PATCH] Changed env variable for setup CORS for frontend --- api/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app.py b/api/app.py index 9602129..7e4622f 100644 --- a/api/app.py +++ b/api/app.py @@ -13,7 +13,7 @@ def create_app(config_name="default"): """Creates and returns a new instance of Flask app.""" load_dotenv() app = Flask(__name__) - CORS(app, supports_credentials=True, origins=os.getenv("CORS_ALLOWED_ORIGINS", "").split(",")) + CORS(app, supports_credentials=True, origins=os.getenv("FRONTEND_ORIGIN", "").split(",")) # Database settings if config_name == "testing":