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"
When using following ingress annotations the preflight OPTIONS request receives a HTTP 401 from HAProxy.
Preflight OPTIONS requests should always work without authentication.