mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5951] feat: improve network error message with CORS explanation #5431
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#5431
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/5951
Author: @aadam-dev
Created: 3/5/2026
Status: 🔄 Open
Base:
main← Head:feat/improve-cors-error-message📝 Commits (1)
70838c9feat: improve network error message with CORS explanation📊 Changes
2 files changed (+12 additions, -0 deletions)
View changed files
📝
packages/hoppscotch-common/locales/en.json(+2 -0)📝
packages/hoppscotch-common/src/components/settings/InterceptorErrorPlaceholder.vue(+10 -0)📄 Description
Summary
Improves the user experience when encountering network failures by adding a clear explanation that CORS is likely the cause.
Problem
When users make requests to APIs from different origins, browsers block these requests due to CORS policies. The current error message ("Network fail") doesn't explain why this happens or how to fix it, leading to confusion especially for new users.
Solution
Screenshots
The error now shows:
Test plan
Related
This addresses a common pain point for new Hoppscotch users who don't understand why their API requests fail in the browser.
Summary by cubic
Adds a highlighted CORS explanation to the network error placeholder so users understand why requests fail and how to fix them. Includes new i18n strings and warning styling that suggests using the browser extension or proxy.
Written for commit
70838c9597. Summary will update on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.