Skip to content

Chrome private network blocks Hub DevTools database #684

@onmax

Description

@onmax

Describe the bug
Chrome 123+ enforces Private Network Access, dev CORS handler at node_modules/@nuxthub/core/dist/runtime/cors.dev.js never emits Access-Control-Allow-Private-Network, so iframe from https://admin.hub.nuxt.com/embed/database hits http://localhost:3000/api/_hub/database/query and Chrome stops with Permission was denied for this request to access the "unknown" address space. Works in Firefox.

Steps to reproduce
Steps to reproduce the behavior:

  1. pnpm dev with @nuxthub/core@0.9.0, devtools enabled on http://localhost:3000
  2. Open Nuxt DevTools → Hub Database tab
  3. Chrome stable 130+ network panel shows blocked preflight + error above

Expected behavior
Hub database tab should load in Chrome with zero flags because /api/_hub middleware should answer the OPTIONS with Access-Control-Allow-Private-Network: true per Chrome changelog (https://chromestatus.com/feature/4711521281703936, https://developer.chrome.com/blog/private-network-access-update-notes/#chrome-123).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions