I have an Apache server v2.4.43 that serves my website, and I use a simple .htpasswd that I call in .htaccess using the instruction "AuthUserFile <path to my .htpasswd file>" for my authentication.
Now the solution works with all browsers (a popup will be showed asking for a username/password), except for the Edge browser (based on Chromium build 84.0.522.52). It throws the following error before even showing the popup that asks you for your credentials:
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
Any ideas will be appreciated.
2
Answers
My organization encountered this today after deploying Chromium Edge at a test location for the first time. When we got with our Enterprise Support guys from MS, we found that the issue was our group policy settings; we needed to change
HKLMSOFTWAREPoliciesMicrosoftEdgeAuthSchemes
in the Windows Registry (regedit.exe
) to add ‘basic’ ("ntlm,negotiate"->"basic,ntlm,negotiate").(We also subsequently discovered that under some circumstances, we needed to have that key not exist at all; when we removed it, Edge continued to work for sites that require basic authentication.)
I was facing the same Problem with Edge chromium and resolved it with the GPO Setting.
GPO: User Configuration -> Administrative Template -> Microsoft Edge -> HTTP Authentication
Policy: Supported authenticated schemes -> Enabled: basic,ntlm,negotiate
Earlier I only had NTLM,Negotiate: Which wasnt allowing the authentication Popups.