solved the CORS problems

If POST is used to send data to the server,
the Content-Type of the data sent to the server with the HTTP POST
request
is one of application/x-www-form-urlencoded, multipart/form-data, or
text/plain.