Skip to content
Bug Barometer

Some Instances of CSRF Validation in SFRA Not Working/Showing Mismatch Error

Salesforce closed this issue.

Summary

In SFRA, the csrfProtection.validateAjaxRequest method can be used to perform CSRF validation. In some versions of SFRA, this call is made via a GET request vs. a POST request (ex: Cart-AddCoupon). When this happens, while intermittent, the validation may succeed (regardless if the tokens match) or users may experience a CSRF Mismatch error.

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Closed with 4 reports

    Nov 30, 2026

Also open in B2C Commerce