Closed JustJoostNL closed 4 months ago
Fixed it by manually adding the WWW-Authenticate
header.
I don't think this is "fixed" if the docs don't say that I need to put the header.
Basically if is used with onError this way to handle the exception is needed https://github.com/honojs/hono/issues/952#issuecomment-1453630369
What version of Hono are you using?
4.3.2
What runtime/platform is your app running on?
Cloudflare Workers
What steps can reproduce the bug?
The app logs 'http exception', and returns
In previous versions of Hono, it asked the user for basic auth, now instead, it instantly returns Unauthorized without asking for basic auth.
What is the expected behavior?
It should ask for basic auth.
What do you see instead?
No basic auth being asked, and unauthorized being returned instantly.
Additional information
No response