In terms of security, what does ASP.NET Core use to protect against cross-site request forgery (CSRF) attacks?

  • Session cookies
  • Antiforgery tokens
  • Basic authentication
  • SSL certificates
ASP.NET Core uses antiforgery tokens to protect against cross-site request forgery (CSRF) attacks. These tokens are generated and validated to ensure that a request originates from a trusted source. Session cookies, basic authentication, and SSL certificates address other security concerns but are not specific safeguards against CSRF attacks.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *