Question

Okay, so I'm protecting a webpage with a basic .htaccess/.htpasswd combination.

My .htaccess file looks something like this:

DirectoryIndex index.php
AuthUserFile HOMEDIRECTORY/.htpasswd  
AuthName "Restricted Area"
AuthType Basic  
require valid-user

Everything works fine under Firefox, but Chrome gives this message. I've tested this on multiple computers.

Authorization Required

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.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Any idea where Chrome is going wrong?

Était-ce utile?

La solution

If you are using a frame redirection between different domains Chrome will not show the login prompt. Use an HTTP 302 or 301 redirection instead.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top