title: How to protect against CSRF by default in ASP.NET Core
body: <p>Inspired by: <a href="https://stackoverflow.com/questions/9965342/how-to-protect-against-csrf-by-default-in-asp-net-mvc-4">How to protect against CSRF by default in ASP.NET MVC 4?</a></p>
  
  <p>Is there a way to achieve the same result in ASP.NET Core?</p>