Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis
Created August 18, 2018 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdyrrahitis/5c3dcc7d486a94cd412f0bd1c732e223 to your computer and use it in GitHub Desktop.
Save gdyrrahitis/5c3dcc7d486a94cd412f0bd1c732e223 to your computer and use it in GitHub Desktop.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
// omitted for brevity
app.UseHttpsRedirection();
app.UseAuthentication();
app.UseCors(builder => builder.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod());
app.UseMvc();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment