6
Answers

Not able to do POST request to webAPI

Sumit Arora

Sumit Arora

8y
430
1
I am accessing a rest api exposed on a different server through a angular code and i have set the CORS in web.config of rest api code and it is working fine for Get request but it does not work for post request.
 
it shows below error
 
Response for preflight has invalid HTTP status code 405 
Answers (6)