how to enable cors in asp.net mvc code example
Example 1: enable cors asp.net mvc
public static void Register(HttpConfiguration config)
{
// New code
config.EnableCors();
}
Example 2: enable cors asp.net mvc
Response.AppendHeader("Access-Control-Allow-Origin", "*");