What is CSRF token ? how to implement CSRF token in html form?

Posted By: Vaishnavi Mall Published: 14, Jan 2024

What is CSRF token ? how to implement CSRF token in html form?


Page Title

Introduction

CSRF stands for Cross-Site Request Forgery which means committing a crime by making an illegal cross-site request but what it is a cross-site request. There are two types of requests that can be made on a website.

  1. Same site request: When a webpage from a website sends an HTTP request to the same website, it is the same site request.
  2. Cross-site request: When a webpage from a website sends an HTTP request to a different website, it is a cross-site request.