谁能告诉我,我怎样才能得到这个浏览器验证窗口?
最佳答案
此弹出窗口是 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/