Skip to content

fix: restrict debug error overlay to localhost only - #1919

Merged
komalharshita merged 1 commit into
komalharshita:mainfrom
aditya226-sharma:fix/debug-error-overlay-production
Aug 19, 2026
Merged

fix: restrict debug error overlay to localhost only#1919
komalharshita merged 1 commit into
komalharshita:mainfrom
aditya226-sharma:fix/debug-error-overlay-production

Conversation

@aditya226-sharma

Copy link
Copy Markdown
Contributor

Description

Guards the error/unhandledrejection listeners behind a localhost check so the debug overlay with raw error details is not shown to production visitors.

Changes

  • Added location.hostname === 'localhost' || location.hostname === '127.0.0.1' guard in index.html
  • Applied same guard in explore.html

Related Issue

Fixes #1862

Type of Change

  • Bug fix

Guards the error/unhandledrejection listeners behind a localhost check
so the debug overlay with raw error details is not shown to production
visitors.

Fixes komalharshita#1862
@vercel

vercel Bot commented Aug 16, 2026

Copy link
Copy Markdown

@aditya226-sharma is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc-2026 type:bug Something isn't working labels Aug 16, 2026
@komalharshita
komalharshita merged commit e74f488 into komalharshita:main Aug 19, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: index.html ships debug JS error overlay to all visitors - red banner + raw error internals in production

2 participants