We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71ebd73 commit cabb434Copy full SHA for cabb434
1 file changed
src/main.py
@@ -1,9 +1,19 @@
1
from src.router import meeting_router
2
from fastapi import FastAPI
3
+from fastapi.middleware.cors import CORSMiddleware
4
5
app = FastAPI()
6
app.include_router(meeting_router.router)
7
8
+app.add_middleware(
9
+ CORSMiddleware,
10
+ allow_origins=["*"],
11
+ allow_credentials=True,
12
+ allow_methods=["*"],
13
+ allow_headers=["*"],
14
+)
15
+
16
17
@app.get('/')
18
def root():
19
return 'hello'
0 commit comments