ASP.Net Web API Error: Response to preflight request doesn't pass access control check

Last Reply 5 months ago By dharmendr

Posted 5 months ago

I want to bind tehsil on behalf of state checked 

if i check all state data is coming from api but not binding and give error below.

please refer image url

Access to XMLHttpRequest at 'http://localhost:5674/api/salesUnit/GetTehsil?from origin 'http://localhost:61796' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.