Mbonea commited on
Commit
0cabf6c
·
1 Parent(s): 9c765c3

removed cors middleware

Browse files
Files changed (1) hide show
  1. main.py +8 -8
main.py CHANGED
@@ -34,14 +34,14 @@ async def validation_exception_handler(request: Request, exc: RequestValidationE
34
  )
35
 
36
 
37
- # Configure CORS
38
- app.add_middleware(
39
- CORSMiddleware,
40
- allow_origins=["*"],
41
- allow_credentials=False,
42
- allow_methods=["*"],
43
- allow_headers=["*"],
44
- )
45
 
46
  # Include routers
47
  app.include_router(stocks_router)
 
34
  )
35
 
36
 
37
+ # # Configure CORS
38
+ # app.add_middleware(
39
+ # CORSMiddleware,
40
+ # allow_origins=["*"],
41
+ # allow_credentials=False,
42
+ # allow_methods=["*"],
43
+ # allow_headers=["*"],
44
+ # )
45
 
46
  # Include routers
47
  app.include_router(stocks_router)