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
1. During login
2. When dealing with sensitive data
1. Create a random CSRF token every time you're asking the user for data
2. Validate the random token every time you deal with data
1. Creating a cookie
2. Validating the cookie

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!