title: Axios post request not sent to external url: TypeError: ns.GetCommandSrc is not a function
body: <p>I got a react app sending some post, get etc requests to an external URL using axios (^0.19.2). The get requests are sent and received properly, though post requests trigger a JS error and are even not sent: </p>
  
  <p><code>TypeError: ns.GetCommandSrc is not a function</code>  </p>
  
  <p>Checking the reference brings me to this method:</p>
  
  <pre><code>function GetCommandUrl()
  {
      var commandSrc = ns.GetCommandSrc() + "/to/ajaxRequestNotify";
      return (document.location.protocol === "https:") ? commandSrc.replace("http:", "https:") : commandSrc;
  }
  </code></pre>
  
  <p>My code is actually pretty simple:</p>
  
  <pre><code>componentDidMount = () =&gt; {
      const accessToken &lt;my access token&gt;;
      axios({
          method: 'post',
          url: 'http://&lt;remote url&gt;/customer/check',
          data: {access_token : accessToken}
      })
      .then(response =&gt; {
          console.log(response.data);
      });
  }
  </code></pre>
  
  <p><strong>-- UPDATE AFTER SOLVING THE ISSUE --</strong> </p>
  
  <p>This function is coming from Kaspersky javascript injection. Solved it by disabling Inject scripts into web traffic to interact with web pages</p>
  
  <p>In <code>Kaspersky: Settings -&gt; Additional -&gt; Network -&gt; Inject scripts into web traffic to interact with web pages</code>.</p>