Safari doesn't show a login-promt when a synchron request returns http-code 401 With an asynchronous request it works fine. It also works with Firefox, Opera, IE, Chrome and the Qt demo browser. It's a safari and not a webkit bug! PHP-Code: <?php header('HTTP/1.0 401 Unauthorized'); header('WWW-Authenticate: Basic realm="REALM"'); ?> JavaScript-Code: function test(async) { var xmlHttp = new XMLHttpRequest(); xmlHttp.open("POST", "401.php", async); xmlHttp.send(null); }
Safari bug reports should be directed at Apple via <http://bugreport.apple.com/>. However, in this case I don't think anything that you've said indicates that this is a Safari problem rather than a problem specific to the Mac-specific portions of WebKit.
*** This bug has been marked as a duplicate of 8342 ***