Which HTTP header is essential for mitigating CSRF attacks?

  • Anti-CSRF
  • CSRF-Token
  • X-CSRF-Token
  • X-Frame-Options
CSRF attacks can be mitigated by using a unique token associated with the user session. This token is typically sent in a custom HTTP header, such as X-CSRF-Token. It helps verify the legitimacy of the request and prevents attackers from forging requests on behalf of the user.
Add your answer
Loading...

Leave a comment

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