I\'m calling a post request through Javascript and here\'s how it looks,
function syncDeviceId(deviceID, mod){
var request = new Request(\'url\', {
met
I too was having the same issue.
I used Chrome debug tool first to make sure that I was passing on a Request Body (Which the chrome debug will call "Request Payload") I was sending
{ClientDomain: "example.com"}
I then used the stated code in my receiving PHP script.
$json = file_get_contents('php://input');
$data = json_decode($json);
which then put my JSON code into an array which I could then read in PHP.
PRINT $data["ClientDomain"];
I hope this helps the next guy.