禁用默认用户/密码浏览器弹出窗口
当用户通过我的网络应用程序向我的服务器提交包含错误用户名或密码的请求时,移动 safari 和其他浏览器会弹出一个表单,要求输入正确的用户名/密码。
我希望禁用此默认行为并自己处理错误。
欢迎任何建议,因为我找不到任何关于我认为常见问题的相关信息(另一位用户一年多前问过同样的问题,但从未收到答案)。
When a user submits a request with a incorrect user or password to my server via my web app, mobile safari and other browsers pop-up a form asking for the correct user/password.
I wish to disable this default behavior and handle the errors myself.
Any suggestions would be welcome as I cannot find any relevant information on what I presume is a common problem (another user asked this same question over a year ago and never received a answer).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决了我的身份验证问题,但使用 CURL 并设置适当的标头。看起来我正在寻求一个不存在的解决方案来解决一个可以避免的问题。
Solved my authentication issues but using CURL and setting the appropriate headers. It looks like I was asking for a solution that does not exist to a question that can be avoided.