Skip to content

Copilot stream endpoint has same malformed Bearer header bug #494

@deepak0x

Description

@deepak0x

Description

Same pattern as the chat route — request.headers.get("Authorization")?.split(" ")[1] passes undefined apiKey when the Bearer token is missing.

Steps to reproduce

  1. Send a request to /api/copilot-stream-response/{streamId} with header Authorization: Bearer (no token)
  2. Undefined apiKey passes into the controller

Expected behavior

Return 401 if the token is missing or empty.

Actual behavior

Undefined apiKey is forwarded without validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions