Do0rMaMu commited on
Commit
bc5b616
·
verified ·
1 Parent(s): fda19ee

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -14
main.py CHANGED
@@ -118,20 +118,6 @@ WorkExperience = sqlalchemy.Table(
118
  )
119
 
120
  app = FastAPI()
121
- # Configure CORS
122
- origins = [
123
- "http://localhost:3000", # Adjust this to the URL of your frontend
124
- "http://127.0.0.1:3000"
125
- ]
126
-
127
- from fastapi.middleware.cors import CORSMiddleware
128
- app.add_middleware(
129
- CORSMiddleware,
130
- allow_origins=["*"], # Allows all origins
131
- allow_credentials=True,
132
- allow_methods=["*"], # Allows all methods
133
- allow_headers=["*"] # Allows all headers
134
- )
135
 
136
  @app.on_event("startup")
137
  async def startup():
 
118
  )
119
 
120
  app = FastAPI()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
 
122
  @app.on_event("startup")
123
  async def startup():