Skip to content

Instantly share code, notes, and snippets.

@arthuralvim
Created June 5, 2020 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arthuralvim/1f8424d6440bb6984fcab3dd973f1166 to your computer and use it in GitHub Desktop.
Save arthuralvim/1f8424d6440bb6984fcab3dd973f1166 to your computer and use it in GitHub Desktop.
HTTP AUTH LOGOUT
// paste it in your console and change the url to your needs.
function logout(to_url) {
var out = window.location.href.replace(/:\/\//, '://log:out@');
jQuery.get(out).error(function() {
window.location = to_url;
});
}
logout('<url-redirect-inside-your-application>')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment