The data parameter is an ArrayBufferView, Blob, DOMString, or FormData object containing the data to be transmitted.
-
no plain old key-value JS object :| serialization of an object to a string up to the developer
-
always
POST
, not possible to sendGET
:| -
when
DOMString
passed, the request type isContent-Type: text/plain
, hence expressjs middlewares that read postdata won't process it :/ need to write custom middleware
https://volument.com/blog/sendbeacon-is-broken