Skip to content

Nova 4 Ignore axios interceptors #4950

Discussion options

You must be logged in to vote

For anyone still trying to use interceptors I managed to work with the XMLHttpRequest object

  const open = XMLHttpRequest.prototype.open;
  XMLHttpRequest.prototype.open = function () {
    this.addEventListener('load', function () {
      // Do something
    });
    open.apply(this, arguments);
  };

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TNDJX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #4949 on October 19, 2022 08:11.