Can I set response headers from a failing request guard? #2567
Unanswered
frenetisch-applaudierend
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a request guard for an authenticated user that fails with status 401 if a matching Authorize header cannot be found. In this 401 response I would like to include the WWW-Authenticate response header. Is this possible by setting the outcome to a specific value? Or would I need to create a custom error catcher for this?
Beta Was this translation helpful? Give feedback.
All reactions