nuxt / nuxt/devtools

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

Open
#564 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.3k
Forks
214
Avg merge
13h 22m
Merged PRs (30d)
18

Description

🐛 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the repeated prompt using the StackBlitz link and review the Nuxt 3 setup in package.json and nuxt.config.ts. Trace the DevTools authentication flow to determine why trust is not retained after refresh; done means authentication is requested once per development port and remains valid on reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
authentication, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.