Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the purpose of the following callback in a controller, and what security vulnerability does it mitigate?
The code enforces authentication for all actions in the UsersController to mitigate unauthorized access.
The code enables Cross-Site Scripting (XSS) protection to prevent malicious script injection
The code enforces authorization for all actions in the UsersController to prevent privilege escalation.
The code enables Cross-Site Request Forgery (CSRF) protection to prevent unauthorized form submissions.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!