[PR #5933] Improve browser network error message with CORS hint #5424

Open
opened 2026-03-17 02:52:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5933
Author: @saksham242007
Created: 3/3/2026
Status: 🔄 Open

Base: mainHead: improve-network-error-message


📝 Commits (1)

  • 4244e12 Improve browser network error message with CORS hint when cause is unavailable

📊 Changes

2 files changed (+14 additions, -6 deletions)

View changed files

📝 packages/hoppscotch-common/locales/en.json (+3 -2)
📝 packages/hoppscotch-common/src/platform/std/kernel-interceptors/browser/index.ts (+11 -4)

📄 Description

This PR improves the browser network error message by making it clear when a request is likely blocked due to CORS restrictions.

before, the error message could be confusing for users, especially when the exact cause was not available.so now This update adds a more helpful hint suggesting that the issue might be related to CORS and recommends using Proxy or Agent mode.

While working in Browser mode, users often encounter CORS-related issues. The earlier message did not clearly explain that the browser might be blocking the request. now this small improvement makes the error more informative and beginner friendly.

The changes we did is ...

  • Updated the en.json translation to include a clearer CORS hint nd
  • Improved browser preventer logic to display the hint when appropriate .

Summary by cubic

Clarifies browser network errors by showing a CORS hint when the cause is unknown. Helps Browser mode users understand blocked requests and suggests Proxy or Agent mode.

  • New Features
    • Browser interceptor uses a CORS hint as the cause when error.cause is missing.
    • Added error.network.cors_hint to en.json and wired it into the network error description.

Written for commit 4244e122c1. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/5933 **Author:** [@saksham242007](https://github.com/saksham242007) **Created:** 3/3/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `improve-network-error-message` --- ### 📝 Commits (1) - [`4244e12`](https://github.com/hoppscotch/hoppscotch/commit/4244e122c1cd1d46ef267b0879d5b545702f848b) Improve browser network error message with CORS hint when cause is unavailable ### 📊 Changes **2 files changed** (+14 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/locales/en.json` (+3 -2) 📝 `packages/hoppscotch-common/src/platform/std/kernel-interceptors/browser/index.ts` (+11 -4) </details> ### 📄 Description This PR improves the browser network error message by making it clear when a request is likely blocked due to CORS restrictions. before, the error message could be confusing for users, especially when the exact cause was not available.so now This update adds a more helpful hint suggesting that the issue might be related to CORS and recommends using Proxy or Agent mode. While working in Browser mode, users often encounter CORS-related issues. The earlier message did not clearly explain that the browser might be blocking the request. now this small improvement makes the error more informative and beginner friendly. The changes we did is ... - Updated the `en.json` translation to include a clearer CORS hint nd - Improved browser preventer logic to display the hint when appropriate . <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Clarifies browser network errors by showing a CORS hint when the cause is unknown. Helps Browser mode users understand blocked requests and suggests Proxy or Agent mode. - **New Features** - Browser interceptor uses a CORS hint as the cause when error.cause is missing. - Added error.network.cors_hint to en.json and wired it into the network error description. <sup>Written for commit 4244e122c1cd1d46ef267b0879d5b545702f848b. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#5424
No description provided.