use webapi cors
1. Installation package: Install-Package Microsoft.AspNet.WebApi.Cors –IncludePrerelease
2. Add the following code to webapiconfig.cs.
var cors = new EnableCorsAttribute("*", "*", "*"); config.EnableCors(cors);
use webapi cors
1. Installation package: Install-Package Microsoft.AspNet.WebApi.Cors –IncludePrerelease
2. Add the following code to webapiconfig.cs.
var cors = new EnableCorsAttribute("*", "*", "*"); config.EnableCors(cors);