title: How to axios DELETE with header when I'm getting 401 all the time?
body: <p>I have a problem with axios call DELETE. When I try to delete entity via postman everything goes fine, from my axios I can post/get/patch entity but delete throws 401 even if passing null instead of payload. A lot of variations have been tried but without positive result.</p>
  
  <p>Best regards!</p>
  
  <pre><code> return new Promise((resolve, reject) =&gt; {
                  let id=payload.id;
                  let url="http://localhost:8080/cars/"+id
                  let config = {
                      headers: {
                          "Authorization": "Bearer "+localStorage.getItem('token'),
                          "Content-Type": "application/json",
                          "Access-Control-Allow-Origin": "*"
                        }
                      }  
  
                  axios.delete(url, payload, config)
                  .then(({data,status}) =&gt; {
                      if(status === 200){
                          resolve(true);
                      }
                  })
                  .catch(error=&gt; {
                      reject(error);
                  })
              }
  </code></pre>