哪些浏览器允许在扩展中拦截 HTTP 401 请求?
我正在寻求为 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论