dsmultimedika commited on
Commit
1375754
·
verified ·
1 Parent(s): d68a7c6

Update app.py

Browse files

fix: improve middleware

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ def create_instance() -> FastAPI:
23
  def add_middleware(app: FastAPI) -> FastAPI:
24
  app.add_middleware(
25
  CORSMiddleware,
26
- allow_origins=["*"],
27
  allow_credentials=True,
28
  allow_methods=["*"],
29
  allow_headers=["*"],
@@ -48,7 +48,7 @@ def register_routers(app: FastAPI) -> FastAPI:
48
  app.include_router(health.router)
49
 
50
  return app
51
-
52
 
53
  def init_app() -> FastAPI:
54
  app: FastAPI = pipe(
 
23
  def add_middleware(app: FastAPI) -> FastAPI:
24
  app.add_middleware(
25
  CORSMiddleware,
26
+ allow_origins=["https://chatbook-multimedika.vercel.app/","http://localhost:3000"],
27
  allow_credentials=True,
28
  allow_methods=["*"],
29
  allow_headers=["*"],
 
48
  app.include_router(health.router)
49
 
50
  return app
51
+ ""
52
 
53
  def init_app() -> FastAPI:
54
  app: FastAPI = pipe(