Question 1 of 6
Which HTTP method does
sendBeacon use, and can you change it?
The spec hard-codes it — the API has no method field at all.
sendBeacon always POSTs. The spec wires it to fetch() with method 'POST'. For PUT/PATCH/DELETE you need fetch(keepalive) — the fetch(keepalive) superset.
Review this lesson