POST method from JavaScript
The POST request is sent via JavaScript fetch when the button is clicked.