diff --git a/main.py b/main.py index a99a5c0..3c8177c 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,15 @@ from fastapi import FastAPI +from fastapi.middleware.cors import CORSMiddleware from routes.route import router app = FastAPI() +app.add_middleware( + CORSMiddleware, + allow_origins=['*'], + allow_credentials=True, + allow_methods=["*"], + allow_headers=["*"], +) + app.include_router(router)