title: axios doesn't send post data to the back-end
body: <p>I'm new to react and.my problem is that i'm going to make a post request to my node back-end. using react-redux and axios. the thing is my back-end doesn't even hit the request. and no action on the network tab in the browser ether </p>
  
  <p>I have tried lots of another answers but doesn't work</p>
  
  <p>this code is in my redux action page</p>
  
  <p>export const postNominationPayments = function </p>
  
  <p>postNominationPayments(candidatePayments) {</p>
  
  <pre><code>let nominationPayments = {
  
      depositor:candidatePayments.depositor,
      depositAmount:candidatePayments.depositAmount,
      depositeDate:candidatePayments.depositeDate,
      filePath:candidatePayments.filePath,
      status:candidatePayments.status,
      nominationId:candidatePayments.nominationId
  
  };
  
  
  return function (dispatch) {
      console.log("**",nominationPayments);
          var headers = {
          'Accept': 'application/json',
          'Content-Type': 'application/json',
          }
       axios
          .post(
              `${API_BASE_URL}/nominations/payments`,
              {
                  nominationPayments
              },{headers: headers}
          )
          .then(response =&gt; {
              console.log("))))))))))))",response);
              // dispatch({
              //     type: POST_NOMINATION_PAYMENTS,
              //     payload: response.data
              // })
          })
          .catch(error =&gt; {
              console.log("===",error);
              // dispatch({ type: AUTH_FAILED });
              // dispatch({ type: ERROR, payload: error.data.error.message });
            });
  
  
  
  };
  </code></pre>
  
  <p>}</p>
  
  <p>post data is coming as expected.also the back works correctly using postman. but it's not working. 
  couldn't think of a solution.
  what is wrong with my code?
  thanks in advance </p>