mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #5780] feat(ux): improve first-time experience for CORS errors #5343
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5343
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5780
Author: @KanhaiyaPandey
Created: 1/18/2026
Status: 🔄 Open
Base:
main← Head:improve/cors-error-message📝 Commits (9)
07d1c61feat(ux): improve first-time experience for CORS errors9e37280Merge branch 'main' into improve/cors-error-message339f1bftest(cli): update e2e expectations and stabilize long-running testa2f5fe6test(cli): align workspace test names with expected failure behavior89aaa58test(cli): removed lowerMessage empty string checkcf8f528Merge branch 'main' into improve/cors-error-message8afeb94Merge branch 'main' into improve/cors-error-message526ada7Merge branch 'main' into improve/cors-error-messagee93f8c0Merge branch 'main' into improve/cors-error-message📊 Changes
5 files changed (+91 additions, -13 deletions)
View changed files
📝
packages/hoppscotch-cli/src/__tests__/e2e/commands/test.spec.ts(+16 -10)📝
packages/hoppscotch-cli/src/__tests__/utils.ts(+11 -2)📝
packages/hoppscotch-cli/src/utils/reporters/junit.ts(+1 -1)📝
packages/hoppscotch-common/locales/en.json(+12 -0)📝
packages/hoppscotch-common/src/platform/std/kernel-interceptors/browser/index.ts(+51 -0)📄 Description
What changed
Improved the error message shown when requests are blocked by browser CORS restrictions.
Instead of a generic “Network Error”, Hoppscotch now displays a clear in-app explanation that:
Why
First-time users currently need to open browser DevTools to understand CORS failures, which creates a confusing onboarding experience.
How it works
The UI detects CORS-related network failures and replaces the generic error message with a dedicated CORS explanation. Request behavior remains unchanged.
Tested with
Closes #1376
Summary by cubic
Improved the error UI for CORS failures by replacing the generic “Network Error” with a clear explanation and safe fixes to help first‑time users. Request behavior is unchanged; only the messaging is improved.
New Features
hoppscotch-commonen.json.Refactors
hoppscotch-cli, disabled default exec timeout inrunCLIand used per‑test timeouts to stabilize long‑running tests (JUnit run now uses a 15‑minute timeout).logfor overwrite notice.Written for commit
e93f8c078a. Summary will update on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.