Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) B2C-Commerce-Developer Question # 53 Topic 6 Discussion

Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) B2C-Commerce-Developer Question # 53 Topic 6 Discussion

B2C-Commerce-Developer Exam Topic 6 Question 53 Discussion:
Question #: 53
Topic #: 6

To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token

generation in the customer address form:

<form … action = “submit”>

<input name =”${dw.web.CSRFProtection.getTokenName()}”

value = “${dw.web.CSRFProtection.generateToken()”>

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 controller function that displays the form


B.

In the middleware chain of the controller post route


C.

In the controller function that handles the submitted form


D.

In the model function that persists the form data


Get Premium B2C-Commerce-Developer Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.