I have a MVC Web API (hosted in IIS) which is in the wwwroot folder and locally accessible within the network.I can execute api calls like this: http://mylocalapi:133/
http://mylocalapi:133/
Add below code in your WebApiConfig class in in Register method
config.EnableCors();