Merge branch 'global-branch' of https://github.com/QuickfoxConsulting/privateGPT into global-branch

This commit is contained in:
Saurab-Shrestha 2024-02-01 12:30:46 +05:45
commit 93b3c4f574
12 changed files with 118 additions and 13 deletions

View file

@ -41,7 +41,7 @@ def create_app(root_injector: Injector) -> FastAPI:
app.add_middleware(
CORSMiddleware,
allow_credentials=True,
allow_origins=["http://localhost:80", "http://10.1.101.125", "http://quickgpt.gibl.com.np"],
allow_origins=["http://localhost:80", "http://10.1.101.125:80", "http://quickgpt.gibl.com.np:80", "http://10.1.101.125", "http://quickgpt.gibl.com.np"],
allow_methods=["DELETE", "GET", "POST", "PUT", "OPTIONS", "PATCH"],
allow_headers=["*"],
)