Skip to content

Commit 89f0468

Browse files
committed
patch(backend): Remove CORS middleware configuration
1 parent 6ac49d0 commit 89f0468

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

backend/src/main.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
import uvicorn
22
from fastapi import FastAPI
3-
from fastapi.middleware.cors import CORSMiddleware
43

54
from .routes import router
65

76
app = FastAPI()
87

98

10-
app.add_middleware(
11-
CORSMiddleware,
12-
allow_origin_regex=".*",
13-
allow_credentials=True,
14-
allow_methods=["*"],
15-
allow_headers=["*"],
16-
)
17-
18-
199
@app.get("/health")
2010
async def status():
2111
return {"message": "OK"}

0 commit comments

Comments
 (0)