feat: cors issue fixed

This commit is contained in:
Project_IO 2024-09-10 21:22:01 +09:00
parent 75e8921073
commit d9440c4aee

2
app.py
View file

@ -7,6 +7,8 @@ app = FastAPI()
app.add_middleware(
CORSMiddleware,
allow_origin=["*"],
allow_credentials=True,
allow_methods=["POST, GET, PATCH, DELETE"],
allow_headers=["*"]
)