Question: What two things do you need to do to protect an application from CSRF attacks? Never 1 . During login 2 . When dealing with
What two things do you need to do to protect an application from CSRF attacks?
Never
During login
When dealing with sensitive data
Create a random CSRF token every time you're asking the user for data
Validate the random token every time you deal with data
Creating a cookie
Validating the cookie
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
