Spaces:
Running
Running
msmhmorsi
commited on
Commit
·
573bcc8
1
Parent(s):
a0c3a22
updated cors settings
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ app = FastAPI(
|
|
14 |
# Add CORS middleware
|
15 |
app.add_middleware(
|
16 |
CORSMiddleware,
|
17 |
-
allow_origins=["
|
18 |
allow_credentials=True,
|
19 |
allow_methods=["*"], # Allows all methods
|
20 |
allow_headers=["*"], # Allows all headers
|
|
|
14 |
# Add CORS middleware
|
15 |
app.add_middleware(
|
16 |
CORSMiddleware,
|
17 |
+
allow_origins=["https://readmytable.vercel.app"], # Allows all origins
|
18 |
allow_credentials=True,
|
19 |
allow_methods=["*"], # Allows all methods
|
20 |
allow_headers=["*"], # Allows all headers
|