禁用默认用户/密码浏览器弹出窗口

发布于 2024-12-22 16:41:33 字数 170 浏览 2 评论 0原文

当用户通过我的网络应用程序向我的服务器提交包含错误用户名或密码的请求时,移动 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

微暖i 2024-12-29 16:41:33

解决了我的身份验证问题,但使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文