Edge chromium 不会显示基本身份验证弹出窗口?

Abd*_*ane 8 apache .htaccess .htpasswd microsoft-edge

我有一个 Apache 服务器 v2.4.43 为我的网站提供服务,并且我使用一个简单的 .htpasswd,我使用指令“AuthUserFile <path to my .htpasswd file>”在 .htaccess 中调用它来进行身份验证。

现在,该解决方案适用于所有浏览器(将显示一个弹出窗口,要求输入用户名/密码),但 Edge 浏览器(基于 Chromium 版本 84.0.522.52)除外。在显示要求您提供凭据的弹出窗口之前,它会引发以下错误:

Unauthorized

This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

Apache/2.4.43 (Unix) Server at mywebsite.com Port 443
Run Code Online (Sandbox Code Playgroud)

任何想法将不胜感激。

Jef*_*lin 10

我的组织今天在测试位置首次部署 Chromium Edge 后遇到了这个问题。当我们与微软的企业支持人员联系时,我们发现问题出在我们的组策略设置上;我们需要更改HKLM\SOFTWARE\Policies\Microsoft\Edge\AuthSchemesWindows 注册表 ( regedit.exe) 以添加“基本”(“ntlm,negotiate”->“basic,ntlm,negotiate”)。

我们随后还发现,在某些情况下,我们需要让该密钥根本不存在;当我们删除它时,Edge 继续为需要基本身份验证的网站工作。