Skip to content

Preflight OPTIONS request does not work with basic-auth #804

@john-edwin-braun

Description

@john-edwin-braun

When using following ingress annotations the preflight OPTIONS request receives a HTTP 401 from HAProxy.
Preflight OPTIONS requests should always work without authentication.

haproxy.org/auth-realm: foo
haproxy.org/auth-secret: bar
haproxy.org/auth-type: basic-auth
haproxy.org/cors-allow-credentials: "true"
haproxy.org/cors-allow-headers: Keep-Alive, User-Agent, Cache-Control, Content-Type, Range, Authorization
haproxy.org/cors-allow-methods: GET, POST, PUT, PATCH, DELETE, OPTIONS
haproxy.org/cors-allow-origin: example.com
haproxy.org/cors-enable: "true"

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