title: how to pass consumer key and consumer secret parameters in axios based network calls?
body: <p>I want to get data from backend using woocommerce api, but for that I need to pass <code>Consumer Key</code> and <code>Consumer Secret</code>, I am using axios library, so how can I pass those parameters with them?</p>
  
  <p>the parameters that i want to include are : <a href="https://i.stack.imgur.com/ZfGQk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZfGQk.png" alt="enter image description here"></a></p>
  
  <p>The code that I have written is as follows:</p>
  
  <pre><code>axios.get('https://LINK', {
         headers: {
        "consumerKey": "KEY",
        "consumerSecret": "SECRET",
       }
  })
    .then((res) =&gt; {
      console.dir(res);
  
    })
    .catch(error =&gt; {
      console.log(error);
    });
    }
  </code></pre>