Skip to content

Instantly share code, notes, and snippets.

@andreconghau
Created June 6, 2017 06:58
Show Gist options
  • Save andreconghau/2e3494dc2b80647a95364681b756fb07 to your computer and use it in GitHub Desktop.
Save andreconghau/2e3494dc2b80647a95364681b756fb07 to your computer and use it in GitHub Desktop.
var p = window.location.protocol + '//'
// current location must return 200 OK for this GET
window.location = window.location.href.replace(p, p + 'logout:password@')
@andreconghau
Copy link
Author

Logout for Basic Auth by Htaccess

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