Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

enable cors asp.net mvc

public static void Register(HttpConfiguration config)
{
    var corsAttr = new EnableCorsAttribute("http://example.com", "*", "*");
    config.EnableCors(corsAttr);
}
Source by enable-cors.org #
 
PREVIOUS NEXT
Tagged: #enable #cors #mvc
ADD COMMENT
Topic
Name
8+6 =