Skip to content

Instantly share code, notes, and snippets.

@EduardoPires
Created February 17, 2018 09:22
Show Gist options
  • Save EduardoPires/b35bb53441a16f42b0f33d6d3b85d24c to your computer and use it in GitHub Desktop.
Save EduardoPires/b35bb53441a16f42b0f33d6d3b85d24c to your computer and use it in GitHub Desktop.
Startup.cs AutoValidateAntiforgeryTokenAttribute
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc(options =>
{
options.Filters.Add(new AutoValidateAntiforgeryTokenAttribute());
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment