fix:merubah cors1

This commit is contained in:
muhamad fais aizat 2025-05-16 16:18:32 +07:00
parent 318a0fc5b1
commit 6fec7cdfe9
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ app.add_middleware(
CORSMiddleware, CORSMiddleware,
# allow_origins=["http://localhost:5173"], # Ganti dengan domain frontend jika perlu # allow_origins=["http://localhost:5173"], # Ganti dengan domain frontend jika perlu
# allow_origins=["https://svr-tomato-price-prediction-frontend.vercel.app"], # Ganti dengan domain frontend jika perlu # allow_origins=["https://svr-tomato-price-prediction-frontend.vercel.app"], # Ganti dengan domain frontend jika perlu
allow_origins=["*"], # Ganti dengan domain frontend jika perlu allow_origins=["predictiontomat.onrender.com"], # Ganti dengan domain frontend jika perlu
allow_credentials=False, allow_credentials=False,
allow_methods=["*"], allow_methods=["*"],
allow_headers=["*"], allow_headers=["*"],