diff --git a/main_api.py b/main_api.py index 29856c8..f006ba9 100644 --- a/main_api.py +++ b/main_api.py @@ -16,11 +16,13 @@ "http://ansari.chat", "https://client2.endeavorpal.com", "http://client2.endeavorpal.com", + "https://ansari.endeavorpal.com", + "http://ansari.endeavorpal.com" ] app.add_middleware( CORSMiddleware, - allow_origins=["*"], + allow_origins=origins, allow_credentials=True, allow_methods=["*"], allow_headers=["*"], @@ -49,4 +51,4 @@ async def complete(request: Request): return presenter.complete(body) else: raise HTTPException(status_code=403, detail="CORS not permitted") - \ No newline at end of file +