title: Cypress: How to access the body of a POST-request?
body: <p><strong>Is there a way in Cypress to check the body of a POST-request?</strong></p>
  
  <p>E.g.: I have entered some data in a form, then pressed "Submit". 
  The form-data is send via POST-request, separated by a blank line from the header-data.</p>
  
  <p>I would like to check the form-data. If all data, which I have entered, are included and if they are correct.</p>
  
  <p>Is that possible with Cypress?</p>
  
  <pre><code>cy.get('@login').then(function (xhr) {
      const body = xhr.requestBody;
      console.log(xhr);
      expect(xhr.method).to.eq('POST');
  });
  </code></pre>
  
  <p>The xhr-object doesn't have the transferred data included.</p>