I have this fetch method
loginbutton.onclick = (e)=> {
    e.preventDefault();
    var creds = {
        login: login.value,
        pass: pass.value
    }
    
    fetch('functions/asklogin.php', {
        method: "POST",
        header: {"Content-type": "application/json; charset=UTF-8"},
        body: JSON.stringify(creds)
    })
    .then(resp => resp.text())
    .then(data => console.log(data));
}
When I click, my xhr body is well fed:
But, if I try to echo these parameters from my asklogin.php
echo "no".$_POST['pass'].":".$_POST['login'];
All I get is no:
Thank you for your help

 
    