Skip to content

[BUG] hasConsoleAccess is false for /ws?dev=true #1185

@sapkra

Description

@sapkra

Describe the bug

I think the title says everything and after looking at the code it confirms that the query param is never read.

https://github.com/VoltAgent/voltagent/blob/3776cb67c3378094b7bc524cb10ca1f78b86d141/packages/server-core/src/auth/utils.ts

Steps To Reproduce

use hasConsoleAccess(request) with NODE_ENV=development

hasConsoleAccess will return false for /ws endpoints

Expected behavior

it should check for dev=true query param

Packages

@voltagent/server-core

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    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