nuxt / devtools

Unleash Nuxt Developer Experience
https://devtools.nuxt.com
MIT License
2.85k stars 153 forks source link

fix: Authentication Token Prompt Repeatedly Appears - 'Access from an untrusted browser, some features are limited. #564

Open been-there-done-that opened 8 months ago

been-there-done-that commented 8 months ago

🐛 The bug

I am encountering an issue in a newly created Nuxt 3 project where the authentication token prompt for console access to DevTools keeps reappearing upon page refresh. The initial authentication works, granting access, but subsequent page reloads prompt me to trust the token again.

Replication Steps:

Create a new Nuxt 3 project. Attempt to authenticate the browser for console access to DevTools. Successfully authenticate for the first time. Upon refreshing the page, the authentication token prompt reappears, requiring reauthorization. Environment Details:

package.json

{
  "name": "nuxt-app",
  "private": true,
  "type": "module",
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "devDependencies": {
    "nuxt": "^3.9.0",
    "vue": "^3.4.5",
    "vue-router": "^4.2.5"
  }
}

Browser: [Version 120.0.6099.129 (Official Build) (x86_64)] Operating System: [MacBook Pro - 13.6.3 (22G436)]

Attaching a stackblitz link not sure we can enable the devtools or not stackblitz

🛠️ To reproduce

https://stackblitz.com/edit/nuxt-starter-l3ypjv?file=nuxt.config.ts

🌈 Expected behavior

The authentication should be requested Once per port during development.

ℹ️ Additional context

some