title: Json server POST request not working by axios
body: <p>Hello Im using this json server <a href="https://github.com/typicode/json-server" rel="nofollow noreferrer">https://github.com/typicode/json-server</a>
  I can post data in postmman and its working good for example object </p>
  
  <pre><code>{  
     "mainTab":{  
        "m_actual":0,
        "m_refresh":2000,
        "m_actual":0,
        "m_refresh":4000
       } 
    }
  </code></pre>
  
  <p>with header <code>Content-Type: application/json</code>
  To my server is running <a href="http://35.195.249.40:3004/users" rel="nofollow noreferrer">http://35.195.249.40:3004/users</a></p>
  
  <p><strong>And everything is ok</strong></p>
  
  <p>But on my app in nativescript/vue I cant make post request - its gives 304 response</p>
  
  <pre><code>updateJsonData(){
              const data = {
  
                  m_actualHP: 0,
                  m_refreshHP: 2000,
                  m_actualMP: 666666,
                  m_refreshMP: 4000,
  
              }
  
          axios.post('http://35.195.249.40:3004/users', data, {
                  headers:  { 
                      'Accept': 'application/json',
                      'Content-Type': 'application/json'
  
                       }
                  }
               )
              .then(function (response) {
                  console.log(response);
  
              })
              .catch(function (error) {
                  console.log(error);
              }); 
  
       }, 
  </code></pre>
  
  <p>I tried with fetch request too and it response 
  'parsing failed: ' [TypeError: Network request failed: java.io.IOException: Cleartext HTTP traffic to not permitted]</p>
  
  <pre><code> updateJsonData(){ 
          fetch('http://35.195.249.40:3004/users', {
              method: 'post',
              headers: {
                  'Accept': 'application/json',
                  'Content-Type': 'application/json'
              },
              body: JSON.stringify({
                  "title":   "Add a blogpost about Angular2",
                  "dueDate": "2015-05-23T18:25:43.511Z",
                  "done": false
              })
              }).then(function(response) {
                  return response.json()
                  }).then(function(json) {
                  console.log('parsed json: ', json)
                  }).catch(function(ex) {
                  console.log('parsing failed: ', ex)
                  });
  
      },  
  </code></pre>