feat: cors issue fixed

This commit is contained in:
Project_IO 2024-09-10 21:23:22 +09:00
parent d9440c4aee
commit 98cc3edf93

2
app.py
View file

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