We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b2d07b + 4d59b7b commit d8ddc33Copy full SHA for d8ddc33
main.py
@@ -1,10 +1,18 @@
1
# main.py
2
3
import uvicorn
4
+from fastapi.middleware.cors import CORSMiddleware
5
from fastapi import FastAPI
6
from routes.sheet import sheet_router
7
8
app = FastAPI()
9
+app.add_middleware(
10
+ CORSMiddleware,
11
+ allow_origins=["*"],
12
+ allow_credentials=True,
13
+ allow_methods=["*"],
14
+ allow_headers=["*"],
15
+)
16
17
app.include_router(sheet_router)
18
requirements.txt
@@ -6,4 +6,5 @@ google-auth-oauthlib
pydantic
python-dotenv
flask
-firebase_admin
+firebase_admin
+fastapi-cors
0 commit comments