Answers for "enable cors asp.net mvc"

C#
0

enable cors asp.net mvc

public static void Register(HttpConfiguration config)
{
    var corsAttr = new EnableCorsAttribute("http://example.com", "*", "*");
    config.EnableCors(corsAttr);
}
Posted by: Guest on October-04-2020
0

enable cors asp.net mvc

public static void Register(HttpConfiguration config)
{
    // New code
    config.EnableCors();
}
Posted by: Guest on October-04-2020
0

enable cors asp.net mvc

Response.AppendHeader("Access-Control-Allow-Origin", "*");
Posted by: Guest on October-04-2020

Code answers related to "enable cors asp.net mvc"

C# Answers by Framework

Browse Popular Code Answers by Language