Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save akarca/92cd9a43d424c4ea677bbfffbd4f976b to your computer and use it in GitHub Desktop.
Save akarca/92cd9a43d424c4ea677bbfffbd4f976b to your computer and use it in GitHub Desktop.
const origSet = XMLHttpRequest.prototype.setRequestHeader;
XMLHttpRequest.prototype.setRequestHeader = function(header, value) {
if(header == "authorization") { window.authorization = value; }
origSet.apply(this, arguments);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment