Skip to content

fix: replace misleading webui CORS error toast with generic network error message#2162

Open
benmcclelland wants to merge 1 commit into
mainfrom
ben/webui-error
Open

fix: replace misleading webui CORS error toast with generic network error message#2162
benmcclelland wants to merge 1 commit into
mainfrom
ben/webui-error

Conversation

@benmcclelland
Copy link
Copy Markdown
Member

@benmcclelland benmcclelland commented May 30, 2026

Browsers throw an opaque TypeError for all network-level failures — CORS policy violations, TLS/certificate rejections (e.g. self-signed certs), DNS failures, and unreachable hosts — with no way to distinguish between them. Asserting "CORS blocked" on every TypeError caused users to chase a CORS misconfiguration when the real problem was an untrusted certificate or unreachable gateway. The error message now lists some plausible causes so users have possible diagnostics regardless of the actual failure mode.

Fixes #2143

…rror message

Browsers throw an opaque TypeError for all network-level failures — CORS
policy violations, TLS/certificate rejections (e.g. self-signed certs), DNS
failures, and unreachable hosts — with no way to distinguish between them.
Asserting "CORS blocked" on every TypeError caused users to chase a CORS
misconfiguration when the real problem was an untrusted certificate or
unreachable gateway. The error message now lists some plausible causes so users
have possible diagnostics regardless of the actual failure mode.

Fixes #2143
@benmcclelland benmcclelland changed the title fix: replace misleading webui CORS error toast with generic network e… fix: replace misleading webui CORS error toast with generic network error message May 30, 2026
@benmcclelland benmcclelland requested a review from niksis02 May 30, 2026 04:13
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.

[Bug] - Webui CORS blocked by gateway

1 participant