You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nuxt DevTools causes 404 error on custom HTTPS domain #925
# Add to /etc/hosts (macOS/Linux) or C:\Windows\System32\drivers\etc\hosts (Windows)
127.0.0.1 custom.domain.local
Development Server
Start the development server:
npm run dev
Open https://custom.domain.local:3000 in the browser.
Describe the bug
When running the Nuxt dev server on a custom HTTPS domain (not localhost), DevTools causes repeated 404 errors in the terminal and a cross-origin error in the browser console.
SecurityError: Failed to read a named property '__NUXT_DEVTOOLS_VIEW__' from 'Window': Blocked a frame with origin "https://custom.domain.local:3000" from accessing a cross-origin frame.
at client.js?v=81bfbde2:136:13
Additional context
Expected behavior
DevTools should work without errors on custom HTTPS domains.
Actual behavior
Terminal shows repeated /_nuxt/ 404 errors from NuxtDevServer.toNodeHandle
Browser console shows cross-origin SecurityError for __NUXT_DEVTOOLS_VIEW__
DevTools panel fails to load properly
Workaround
Disabling DevTools eliminates the errors:
devtools: {enabled: false},
Additional context
Works fine on https://localhost:3000
The issue appears to be DevTools probing /_nuxt/ (bare path with trailing slash) which returns 404
nuxt/nuxt#31543 - fix(vite): return 404 for non-existent _nuxt/ paths in development [merged] nuxt/nuxt#31646 - fix(vite): prevent 404 for existent dev server handlers under _nuxt/ paths in development [merged] nuxt/nuxt#33359 - feat(nuxt): display youch error page w/ user error page in dev [merged] nuxt/nuxt#33670 - fix(vite): respect vite proxy in dev middleware [merged]
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
Activity
coderabbitai commentedon Jan 25, 2026
📝 CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
Examples
🔗 Related PRs
nuxt/nuxt#31543 - fix(vite): return 404 for non-existent
_nuxt/paths in development [merged]nuxt/nuxt#31646 - fix(vite): prevent 404 for existent dev server handlers under
_nuxt/paths in development [merged]nuxt/nuxt#33359 - feat(nuxt): display youch error page w/ user error page in dev [merged]
nuxt/nuxt#33670 - fix(vite): respect vite proxy in dev middleware [merged]
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!