removed cors middleware
Browse files
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 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
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)
|