Customize User-Agent Logging for CSRF Security

Meet compliance requirements and strengthen security monitoring by customizing User-Agent logging strings during Cross-Site Request Forgery (CSRF) token validation. Previously, strings longer than 32 characters were truncated. Now, you can increase the number of characters to capture more detail. You can also turn off logging entirely or set the number of characters to less than 32 to balance storage efficiency with detail.

Where: This change applies to B2C Commerce.

How: To enable custom CSRF token user agent log truncation, contact Salesforce Customer Support.