title: JWT authorization using Axios post request
body: <p>I received a JWT which I stored locally. Using this same JWT, I am attempting to make a POST request, however I am getting an 401 error, and an error which says "No JWT provided". I know that the JWT is valid as I have used it in my GET requests successfully.</p>
  
  <pre><code>axios
      .post("https://example.com", {
        headers: {
          token:
            "abc"
        },
        solutions: {
          solution: answer
        }
      })
      .then(response =&gt; {
        console.log(response.data);
      })
      .catch(error =&gt; {
        console.log(error.response);
      });
  };
  </code></pre>
  
  <p>Edit:
  I am adding the code for my GET request that works as a reference.</p>
  
  <pre><code>axios
    .get("https://example.com", {
      headers: {
        token:
          "abc"
      }
    })
    .then(function(response) {
      // makeResponse(response.data);
      console.log(response.data);
    })
    .catch(function(error) {
      console.log(error);
    });
  </code></pre>
  
  <p>Thank you!</p>