gpt4 book ai didi

http - 如何获得浏览器身份验证弹出窗口?

转载 作者:可可西里 更新时间:2023-11-01 15:07:17 25 4
gpt4 key购买 nike

谁能告诉我,我怎样才能得到这个浏览器验证窗口?

enter image description here

最佳答案

此弹出窗口是 HTTP-Authentication 的一部分.为了获得它,您需要在您的网络服务器中启用它。正如维基百科所说:

When the server wants the user agent to authenticate itself towards the server, it can send a request for authentication.

This request should be sent using the HTTP 401 Not Authorized response code containing a WWW-Authenticate HTTP header.

The WWW-Authenticate header for basic authentication (used most often) is constructed as following: WWW-Authenticate: Basicrealm="insert realm"

关于http - 如何获得浏览器身份验证弹出窗口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23004942/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com