Created
February 17, 2018 09:22
-
-
Save EduardoPires/b35bb53441a16f42b0f33d6d3b85d24c to your computer and use it in GitHub Desktop.
Startup.cs AutoValidateAntiforgeryTokenAttribute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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