ITADN

make setting header configurable

#162Closedsina-rostami 创建于 2023-08-29
question
S
sina-rostamicommented
Hi, thank you for your work. You put the `WWW-Authenticate` header on all responses and in the case of basic authentication, this leads the browsers to prompt for username and password every time. however, maybe someone doesn't want this. I am developing a service in which I want to take some actions in case of wrong credentials, but the browser constantly prompts me for a username and password repeatedly. I fixed the problem by commenting line that sets the header. But I thought it would be good if the user could control this feature. I can open a pull request for this if you agree with the logic. Regards.
关闭于 2023-08-30 2 条评论