zliang commited on
Commit
50bf935
1 Parent(s): b6b0eca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ app = FastAPI()
13
  # Configure CORS
14
  app.add_middleware(
15
  CORSMiddleware,
16
- allow_origins=["*"], # Allows all origins
17
  allow_credentials=True,
18
  allow_methods=["*"], # Allows all methods
19
  allow_headers=["*"], # Allows all headers
 
13
  # Configure CORS
14
  app.add_middleware(
15
  CORSMiddleware,
16
+ allow_origins=["https://chatzl.github.io"], # Allows only this origin
17
  allow_credentials=True,
18
  allow_methods=["*"], # Allows all methods
19
  allow_headers=["*"], # Allows all headers