navigator.sendBeacon() does not show Request Body in F12 for Blob

Confirmed Issue #12088671 • Assigned to Mike J.

Details

Author
Nic J.
Created
May 22, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Chrome
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

We’ve added support for sendBeacon() to Boomerang, but are concerned that doing so will make debugging harder, because we can’t see the request payload on our RUM beacons.

We need to use a Blob, as it’s the only way to specify the Content-Type of "application/x-www-form-urlencoded" for sendBeacon():

var contentType = 'application/x-www-form-urlencoded';
var content = 'a=1&b=2';
var requestBlob = new Blob([content], {'type' : contentType});
navigator.sendBeacon('testbeacon', requestBlob);

Firefox shows the request payload OK, but Edge (and Chrome) show an empty request body.

Attachments

1 attachment

Comments and activity

  • CC Todd Reifsteck

  • Changed Steps to Reproduce

  • Microsoft Edge Team

    Changed Status to “Confirmed”

    Changed Assigned To to “Mike J.”

You need to sign in to your Microsoft account to add a comment.

Sign in