Our web application is developed using React and Spring Boot. We have an existing feature to download the data in an Excel file.
Following piece of code is used to send a GET request to generate and download the document.
window.location.assign(exportRESTEndPoint);
But now API developers want to change the end point from GET to POST to support more data, but window.location.assign does not support a POST request.
Any suggestions on how to download a file from server which requires a POST request with 'Content-Type': 'application/x-www-form-urlencoded'