1.5.4.Anti-forgery Tokens
Malicious page:
If the hacker put image or IFrame and write a little bit JavaScript code, when the page is loaded, it will send HTTP request to our endpoint
If user has an active session on our wibsite, these requests will be successfully executed on his behalf.
CSRF (Cross-Site Request Forgery)
2 step to prevent:
1.Add in client form
2.Add in controller to validate
Last updated