zliang commited on
Commit
ce16251
1 Parent(s): cb4a001

Update app.py

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