I am using angular 7 and when i post data to web api from local machine it will work but when same web api i publish on server i can get data from api but i am not able to post data.
I am getting CORS error.

Facing this issue whlie WEB API is published on server.

I have installed CROS nuget package but still i am not able to resolve issue.

I have tried web api changes also installed CORS package also tried Proxy config in Angular but it is not working.

Error: "has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

```
<httpProtocol>
  <customHeaders>
    <add name="Access-Control-Allow-Origin" value="*" />
    <add name="Access-Control-Allow-Headers" value="Content-Type" />
    <add name="Access-Control-Allow-Methods" value="GET,POST,PUT,DELETE,OPTIONS" />
  </customHeaders>
</httpProtocol>

```