title: Fetch request with Wordpress Rest api isn't working (Only on Edge)
body: <p>I'm trying to to get informations from a custom WordPress API endpoint using the GET method. For performing this, I have to use the cookies authentication system of WordPress.</p>
  
  <p>I'm using JavaScript and the fetch API. It works perfectly well on Mozilla Firefox and  Google Chrome, but when I run my code in Edge, it return a 403 error. </p>
  
  <p>My version of Edge is :
  Microsoft EdgeHTML 17.17134</p>
  
  <p>̶A̶l̶s̶o̶ ̶i̶n̶ ̶E̶d̶g̶e̶ ̶w̶h̶e̶n̶ ̶I̶'̶m̶ ̶g̶o̶i̶n̶g̶ ̶t̶h̶e̶ ̶t̶h̶e̶ ̶D̶e̶v̶T̶o̶o̶l̶ ̶p̶a̶n̶e̶l̶,̶ ̶i̶n̶ ̶t̶h̶i̶s̶ ̶N̶e̶t̶w̶o̶r̶k̶ ̶t̶a̶b̶,̶ ̶I̶ ̶c̶a̶n̶'̶t̶ ̶s̶e̶e̶ ̶m̶y̶ ̶r̶e̶q̶u̶e̶s̶t̶</p>
  
  <p>Here is my code :</p>
  
  <pre><code>fetch(WP_API_Settings.root + 'my-custom-endpoint', {
      headers:{
              'X-WP-Nonce': WP_API_Settings.nonce,
      }
  })
  .then((resp) =&gt; resp.json())
  .then((response) =&gt; {
       //My code
  })
  </code></pre>