Skip to content

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

Open
aditya226-sharma wants to merge 1 commit into
komalharshita:mainfrom
aditya226-sharma:fix/debug-error-overlay-production
Open

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

Conversation

@aditya226-sharma

Copy link
Copy Markdown

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc-2026 type:bug Something isn't working

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

1 participant