Skip to content

Commit 942a3ea

Browse files
committed
Update CORS configuration to allow GitHub Pages domain
1 parent b83ac20 commit 942a3ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Add CORS middleware
1010
application.add_middleware(
1111
CORSMiddleware,
12-
allow_origins=os.getenv("ALLOWED_ORIGINS", "*").split(","),
12+
allow_origins=["https://getgit789.github.io", "http://localhost:3000", "http://localhost:5500"],
1313
allow_credentials=True,
1414
allow_methods=["*"],
1515
allow_headers=["*"]

0 commit comments

Comments
 (0)