Skip to content

Commit 52a4ede

Browse files
fix allow origins
1 parent 4f8ccbc commit 52a4ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genai/app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def custom_openapi():
106106

107107
app.add_middleware(
108108
CORSMiddleware,
109-
allow_origins=["*"],
109+
allow_origins=[CLIENT_URL, SERVER_URL],
110110
allow_credentials=True,
111111
allow_methods=["*"],
112112
allow_headers=["*"],

0 commit comments

Comments
 (0)