ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 118 - Certified B2C Commerce Developer discussion

Report
Export

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
Answers
A.
In the middleware chain of the controller post route
B.
In the controller function that displays the form
Answers
B.
In the controller function that displays the form
C.
In the model function that persists the form data
Answers
C.
In the model function that persists the form data
D.
In the view function that handles the submitted form
Answers
D.
In the view function that handles the submitted form
Suggested answer: A
asked 23/09/2024
Helania Stevenson
51 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first