Request header field content-type is not allowed
I have a third party API which uses SOAP + xml.
I want to send a post request.
Using Postman I can make this request without any problems.
However, I cannot send it with JQuery, getting an error: Access to XMLHttpRequest at '[api link]' from origin '[localhost]' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.
I want to send a post request.
Using Postman I can make this request without any problems.
However, I cannot send it with JQuery, getting an error: Access to XMLHttpRequest at '[api link]' from origin '[localhost]' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.



