Skip to content

Conversation

powmedia
Copy link

Browsers such as Safari intercept 401 Unauthorized responses with the Basic challenge. In client side apps using XHR requests this creates a browser authorization dialog, when in many cases you'd rather handle the error within the app.

This PR adds a new option, xhrChallengeType, which lets you rename the challenge type and avoid this issue.

More info:
http://stackoverflow.com/questions/9859627/how-to-prevent-browser-to-invoke-basic-auth-popup-and-handle-401-error-using-jqu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant