Response for preflight has invalid http status code 404 in my angular project while consuming web api
问题 I know that it's CORS problem. I have enabled cors in web api server side. Get method is working fine but while dealing with post method I am facing problem . Please some one answer me with very simple post example both on web api and client side. With explanation of how to deal with preflight, options etc.. Console 1) zone.js:2935 OPTIONS http://localhost:49975/api/Add_Client_/postgoals 404 (Not Found) 2) Failed to load http://localhost:49975/api/Add_Client_/postgoals: Response for preflight