List of questions
Related questions
Question 118 - Certified B2C Commerce Developer discussion
To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token generation in the customer address form.
To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF validation using one or both of these methods as applicable: validateRequest validateAjaxRequest
Where in the code does the developer need to add this CSRF validation check?
A.
In the middleware chain of the controller post route
B.
In the controller function that displays the form
C.
In the model function that persists the form data
D.
In the view function that handles the submitted form
Your answer:
0 comments
Sorted by
Leave a comment first