The authc dialog box is displayed every time the authentication fails when using AJAX + BASIC or DIGEST .
This happens due to the WWW-Authenticate header which forces the browser to show the authc dialog box.
This is more like a Google Chrome behavior. In Firefox the dialog is never show.
Given that, the idea is check the presence of the X-Requested-With header to decide whether the requests cames from XHR or not. If so, suppress the WWW-Authenticate header.
|