Skip to content

Instantly share code, notes, and snippets.

@pielegacy
Created January 16, 2017 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pielegacy/041b185f215eb6ea3c8383ace104c4da to your computer and use it in GitHub Desktop.
Save pielegacy/041b185f215eb6ea3c8383ace104c4da to your computer and use it in GitHub Desktop.
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
app.UseCors(options => options.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod().AllowCredentials());
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug();
app.UseMvc();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment