Skip to content

fix(aigateway): add backend upstream test endpoint to avoid frontend CORS#1244

Merged
HaiHui886 merged 1 commit into
mainfrom
sync_mr_2677_f0cf76c
Jul 9, 2026
Merged

fix(aigateway): add backend upstream test endpoint to avoid frontend CORS#1244
HaiHui886 merged 1 commit into
mainfrom
sync_mr_2677_f0cf76c

Conversation

@Rader

@Rader Rader commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary:

  • Adds a new POST /config/upstreams/:id/test backend endpoint to resolve frontend CORS errors when testing commercial API upstreams.
  • The backend securely fetches upstream configurations, sends a test request with a 30s timeout, and returns a sanitized summary including status codes and extracted content.
  • Resolves issue #2310 by enabling reliable connection testing for both /chat/completions and /responses endpoint formats without exposing sensitive credentials.

@Rader

Rader commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

Depends on #1243

@HaiHui886 HaiHui886 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@HaiHui886
HaiHui886 merged commit b264e5e into main Jul 9, 2026
7 checks passed
@HaiHui886
HaiHui886 deleted the sync_mr_2677_f0cf76c branch July 9, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants