asp.net mvc cross-origin resource sharing code example
Example: enable cors asp.net mvc
public static void Register(HttpConfiguration config)
{
var corsAttr = new EnableCorsAttribute("http://example.com", "*", "*");
config.EnableCors(corsAttr);
}