Created
June 5, 2020 11:47
-
-
Save arthuralvim/1f8424d6440bb6984fcab3dd973f1166 to your computer and use it in GitHub Desktop.
HTTP AUTH LOGOUT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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