Spaces:
Sleeping
Sleeping
Commit ·
42e0d8e
1
Parent(s): 9d92d27
Setting Cors
Browse files
main.py
CHANGED
|
@@ -11,7 +11,7 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
| 11 |
app = FastAPI()
|
| 12 |
app.add_middleware(
|
| 13 |
CORSMiddleware,
|
| 14 |
-
allow_origins=["https://trash-scan-fe.vercel.app
|
| 15 |
allow_credentials=True,
|
| 16 |
allow_methods=["*"],
|
| 17 |
allow_headers=["*"],
|
|
|
|
| 11 |
app = FastAPI()
|
| 12 |
app.add_middleware(
|
| 13 |
CORSMiddleware,
|
| 14 |
+
allow_origins=["https://trash-scan-fe.vercel.app"], # Gantilah dengan URL frontend Anda
|
| 15 |
allow_credentials=True,
|
| 16 |
allow_methods=["*"],
|
| 17 |
allow_headers=["*"],
|