Skip to content

Commit cabb434

Browse files
committed
.
1 parent 71ebd73 commit cabb434

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/main.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
from src.router import meeting_router
22
from fastapi import FastAPI
3+
from fastapi.middleware.cors import CORSMiddleware
34

45
app = FastAPI()
56
app.include_router(meeting_router.router)
67

8+
app.add_middleware(
9+
CORSMiddleware,
10+
allow_origins=["*"],
11+
allow_credentials=True,
12+
allow_methods=["*"],
13+
allow_headers=["*"],
14+
)
15+
16+
717
@app.get('/')
818
def root():
919
return 'hello'

0 commit comments

Comments
 (0)