Notifications
Clear all

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:

1 Posts
1 Users
0 Likes
71 Views
(@mcgruenathaniel)
Posts: 732
Noble Member
Topic starter
 

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 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

Show Answer Hide Answer

Suggested Answer: B
 
Posted : 03/12/2022 5:57 am

Latest Salesforce Certified B2C Commerce Developer Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: