Is there a way to send a DELETE request from a website, using xmlhttprequest or something similar?
xmlhttprequest
I use fetch API on one of the projects:
fetch(deleteEndpoint, { method: 'delete', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({id: id, token: token}) })
I have deleteEndpoint, id and token previously defined.
deleteEndpoint
id
token