title: js fetch post works, but php is empty
body: <p>I have this fetch method</p>
  <pre><code>loginbutton.onclick = (e)=&gt; {
      e.preventDefault();
      var creds = {
          login: login.value,
          pass: pass.value
      }
      
      fetch('functions/asklogin.php', {
          method: &quot;POST&quot;,
          header: {&quot;Content-type&quot;: &quot;application/json; charset=UTF-8&quot;},
          body: JSON.stringify(creds)
      })
      .then(resp =&gt; resp.text())
      .then(data =&gt; console.log(data));
  }
  </code></pre>
  <p>When I click, my xhr body is well fed:</p>
  <p><a href="https://i.stack.imgur.com/bbtPO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bbtPO.png" alt="enter image description here" /></a></p>
  <p>But, if I try to echo these parameters from my asklogin.php</p>
  <pre><code>echo &quot;no&quot;.$_POST['pass'].&quot;:&quot;.$_POST['login'];
  </code></pre>
  <p>All I get is <code>no:</code></p>
  <p>Thank you for your help</p>