Parse Javascript fetch in PHP : <p>I'm calling a post request through Javascript and here's how it looks,</p>

<pre><code>function syncDeviceId(deviceID, mod){
  var request = new Request('url', {
    method: 'POST',
    body: JSON.stringify({
        uuid: unique_id,
    }),
    mode: 'cors'
  })

  fetch(request).then(function(data) {
    return
  })
</code></pre>

<p>And I'm trying to retreive the values like this,</p>

<pre><code>&lt;?php

$post['uuid'] = $_POST['uuid']; 

?&gt;
</code></pre>

<p>This is returned as empty, how can I retrieve the values from the fetch post request in PHP. Thanks</p>
