Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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
9+7 =