Sudipta Nayak commited on
Commit
52ba617
·
1 Parent(s): c4f2cca

no message

Browse files
Files changed (1) hide show
  1. app/main.py +8 -8
app/main.py CHANGED
@@ -60,14 +60,14 @@ async def detect_objects(request: Request, item: Item):
60
 
61
 
62
  # Set all CORS enabled origins
63
- if settings.BACKEND_CORS_ORIGINS:
64
- app.add_middleware(
65
- CORSMiddleware,
66
- allow_origins=[str(origin) for origin in settings.BACKEND_CORS_ORIGINS],
67
- allow_credentials=True,
68
- allow_methods=["*"],
69
- allow_headers=["*"],
70
- )
71
 
72
 
73
  # Start app
 
60
 
61
 
62
  # Set all CORS enabled origins
63
+ # if settings.BACKEND_CORS_ORIGINS:
64
+ # app.add_middleware(
65
+ # CORSMiddleware,
66
+ # allow_origins=[str(origin) for origin in settings.BACKEND_CORS_ORIGINS],
67
+ # allow_credentials=True,
68
+ # allow_methods=["*"],
69
+ # allow_headers=["*"],
70
+ # )
71
 
72
 
73
  # Start app