哪些浏览器允许在扩展中拦截 HTTP 401 请求?

发布于 2025-01-06 06:44:34 字数 285 浏览 3 评论 0原文

我正在寻求为 HTTP 服务器实现一个自定义身份验证机制,该机制向本地用户提供请求,并且我想编写一个浏览器扩展来处理挑战 - 我正在考虑以 HTTP 401 响应的形式挑战挑战WWW-Authenticate 标头中指定的自定义机制名称。

在当前使用的常见浏览器中,哪些浏览器可以拦截并响应扩展中的 HTTP 401 响应,而浏览器不会自动处理 401?

如果不可能拦截 HTTP 401,那么我对如何实现我想要实现的目标有一些替代想法,这只是开始,我更愿意探索 401 方法,以便它可以与其他 HTTP 身份验证共存机制。

I am looking to implement a custom authentication mechanism for HTTP server that is serving up requests to local users and I would like to write a browser extension to handle the challenge - I am considering the challenge being in the form of a HTTP 401 response with a custom mechanism name specified in a WWW-Authenticate header.

Of the common browsers currently in use, which if any of these can you intercept and respond to a HTTP 401 response from within an extension without the browser handling the 401 automatically?

If intercepting the HTTP 401 is not possible then I have some alternative ideas regarding how to implement what I am trying to achieve it is just to begin with I would prefer to explore the 401 approach so that it can co-exist with the other HTTP authentication mechanisms.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文