From 8c44c023d5ec1f17869c6b2b10f94859aaa74f4f Mon Sep 17 00:00:00 2001 From: danilgryaznev Date: Sat, 27 Sep 2025 12:53:49 +0300 Subject: [PATCH] CORS is Ok! --- backend/app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/main.py b/backend/app/main.py index 3f64f78..537878f 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -11,7 +11,7 @@ from app.db.session import engine from app.models.base import Base app = FastAPI(title=settings.project_name) -origins = ["http://localhost:3000", "http://0.0.0.0:3000"] + app.add_middleware( CORSMiddleware,