Spaces:
Sleeping
Sleeping
Post Request
#2
by Natsuna - opened
main.py
CHANGED
|
@@ -14,6 +14,7 @@ app = FastAPI(
|
|
| 14 |
# configure CORS middleware
|
| 15 |
app.add_middleware(
|
| 16 |
CORSMiddleware,
|
|
|
|
| 17 |
allow_credentials=True,
|
| 18 |
allow_methods=["*"],
|
| 19 |
allow_headers=["*"],
|
|
|
|
| 14 |
# configure CORS middleware
|
| 15 |
app.add_middleware(
|
| 16 |
CORSMiddleware,
|
| 17 |
+
allow_origins=["*"],
|
| 18 |
allow_credentials=True,
|
| 19 |
allow_methods=["*"],
|
| 20 |
allow_headers=["*"],
|