Skip to content

Commit c160fbb

Browse files
committed
feat: introduce cors check
1 parent baed696 commit c160fbb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/askui/chat/api/app.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,16 @@ def mcp_server_connection_error_handler(
166166
)
167167

168168

169+
origins = [
170+
"http://localhost:4200",
171+
"https://app.caesr.ai",
172+
"https://app-dev.caesr.ai",
173+
"https://hub.askui.com",
174+
"https://hub-dev.askui.com",
175+
]
169176
app.add_middleware(
170177
CORSMiddleware,
171-
allow_origins=["*"],
178+
allow_origins=origins,
172179
allow_credentials=True,
173180
allow_methods=["*"],
174181
allow_headers=["*"],

0 commit comments

Comments
 (0)