Spaces:
Running
Running
Update app/main.py
Browse files- app/main.py +0 -7
app/main.py
CHANGED
|
@@ -37,13 +37,6 @@ app = FastAPI(
|
|
| 37 |
redoc_url="/redoc",
|
| 38 |
)
|
| 39 |
|
| 40 |
-
app.add_middleware(
|
| 41 |
-
CORSMiddleware,
|
| 42 |
-
allow_origins=getattr(config, "ALLOWED_ORIGINS", ["*"]),
|
| 43 |
-
allow_credentials=True,
|
| 44 |
-
allow_methods=["*"],
|
| 45 |
-
allow_headers=["*"],
|
| 46 |
-
)
|
| 47 |
|
| 48 |
|
| 49 |
|
|
|
|
| 37 |
redoc_url="/redoc",
|
| 38 |
)
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
|
| 42 |
|