You can use the fetch() method to send an asynchronous POST…

You can use the fetch() method to send an asynchronous POST request to a server by passing in as arguments the location of the server resource and an options object that includes the method: POST, headers: value, and body: value options to describe the HTTP message.