Skip to content

[Bug] CORS preflight (OPTIONS) requests fail when authentication is enabled #357

@fGeorjje

Description

@fGeorjje

When authRequired is set to true, browser-based clients (such as NodeCG or web dashboards) fail to fetch data because the browser sends a CORS preflight OPTIONS request without credentials. BasicAuthFilter currently rejects this with a 401 Unauthorized, which causes the browser to block the subsequent actual request.

I am submitting a PR to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions