If you can’t access your webAPI functions from another site, this is normal in ASP.net. To fix it, Open ‘Manage Nuget Packages’ and add the ‘Microsoft.ASPNet.WebApi.Cors’ (Cross Origin support) package.
Then in your controller, add this to your using statements:
and add this attribute to your controller class:
Note this will allow access from anywhere.