From 22c5615430b2da8e4abf3e9db1ad97a23ae0352c Mon Sep 17 00:00:00 2001 From: arodindev Date: Sat, 17 Aug 2024 13:46:33 +0200 Subject: [PATCH] fix: allow all origins --- todoapp/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todoapp/main.py b/todoapp/main.py index 061d52f..7394612 100644 --- a/todoapp/main.py +++ b/todoapp/main.py @@ -30,7 +30,7 @@ async def read_root() -> FileResponse: if settings.BACKEND_CORS_ORIGINS: app.add_middleware( CORSMiddleware, - allow_origins=[str(origin) for origin in settings.BACKEND_CORS_ORIGINS], + allow_origins=["*"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"],