title: Fetch api post call returning 403 forbidden error in React js but the same URL working in postman
body: <p>Below code is not working and returning 403 forbidden but the same url giving the correct response postman tool. </p>
  
  <pre><code>fetch('https://example.com/', {
    method: 'POST',
    headers: {'Content-Type': 'application/json', },
   body:JSON.stringify(sampledata),
  }).then(result =&gt; console.log('success====:', result))
    .catch(error =&gt; console.log('error============:', error));
  </code></pre>