Getting the following error.
One possible reason I see is that the data sent is not a pure HTML but I couldn't find how to send (or what exactly is) a pure HTML to be sent in POST request
This is the code I'm using :
axios.post(
"https://cors-anywhere.herokuapp.com/http://ec2-13-231-224-159.ap-northeast-1.compute.amazonaws.com:8080/api/invoice/pdf/generate"
, this.state.stuff)
.then((res) => {
console.log(res);
});
console.log(this.state);
There is no server side to contact so I relied on CORS Proxy