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
First tracked here as Closed with 4 reports
Nov 30, 2026
Also open in B2C Commerce
Salesforce Partner Community - Partners are unable to see obtained Certifications
Solution ScheduledCommerce / B2C CommerceReported Jan 4, 2022289 reports289reports
Product Index Broken for Turkish locale as the Unicode LATIN CAPITAL LETTER *I* transforms to LATIN SMALL LETTER DOTLESS *ı*
Solution ScheduledCommerce / B2C CommerceReported May 27, 202046 reports46reports
Boomi integrations can fail with java.net.SocketException: Unexpected end of file from server; Caused by: Unexpected end of file from server
Solution ScheduledCommerce / B2C CommerceReported Sep 29, 202138 reports38reports
Expose SendGoogleSiteMap Pipelet as Script API / OCAPI
Solution ScheduledCommerce / B2C CommerceReported Mar 10, 202034 reports34reports