/// <summary> /// The GlobalConfig.Config(config) call is for standardizing base configuration in Web API /// </summary> /// <param name="appBuilder"></param> public void Configuration(IAppBuilder appBuilder) { var config = new HttpConfiguration(); GlobalConfig.Config(config); appBuilder.UseItuDevelopersApi(config); appBuilder.UseWebApi(config); }
public void Configuration(IAppBuilder app) { var config = new HttpConfiguration(); var corsAttribute = new EnableCorsAttribute("http://localhost:3001", "*", "*"); config.EnableCors(corsAttribute); GlobalConfig.Config(config); app.UseItuDevelopersApi(config); app.UseWebApi(config); }