Jaaccaa commited on
Commit
8fa78af
·
verified ·
1 Parent(s): 1e270bf

Update backend/main.py

Browse files
Files changed (1) hide show
  1. backend/main.py +3 -3
backend/main.py CHANGED
@@ -43,10 +43,10 @@ print("Groq API configured successfully.")
43
  # CORS configuration (allows the frontend application to communicate with the backend)
44
  app.add_middleware(
45
  CORSMiddleware,
46
- allow_origins=["*"], # In production, restrict this to the specific frontend URL
47
  allow_credentials=True,
48
- allow_methods=["*"],
49
- allow_headers=["*"],
50
  )
51
 
52
  # 1. Data Models (Expected JSON payloads from the frontend client)
 
43
  # CORS configuration (allows the frontend application to communicate with the backend)
44
  app.add_middleware(
45
  CORSMiddleware,
46
+ allow_origins=["https://data-augmentation-sigma.vercel.app"],
47
  allow_credentials=True,
48
+ allow_methods=["https://data-augmentation-sigma.vercel.app"],
49
+ allow_headers=["https://data-augmentation-sigma.vercel.app"],
50
  )
51
 
52
  # 1. Data Models (Expected JSON payloads from the frontend client)