BrowserPolicyViolation
We recommend that you manage this object through the Trusted URL and Browser Policy Violations list in Setup. See Manage Trusted URL and Browser Policy Violations in Salesforce Help.
To see detailed information about the captured CSP violations for your org, use the CSP Violation Event Type.
To understand when Salesforce captures blocked redirections, see External Redirection Restrictions in Salesforce in Salesforce Help. For detailed information about each blocked redirection, use the Blocked Redirect Event Type.
When you delete a BrowserPolicyViolation, only the logged event is removed. If your allowlists still block those requests, a new BrowserPolicyViolation is generated the next time a matching request occurs.
To help you manage the list, a daily process deletes violations that haven’t occurred within the last seven days. To track browser policy violations over time, schedule daily queries of the Blocked Redirect and CSP Violations event types.
Supported Calls
delete(), describeSObjects(), query(), retrieve()
Special Access Rules
Only users with the Customize Application and Modify All Data permissions can access this object.
Fields
| Field | Details |
|---|---|
| DeveloperName |
|
| Language |
|
| MasterLabel |
|
| NamespacePrefix |
|
| UntrustedUrl |
|
| ViolationContext |
|
| ViolationImpact |
|
| ViolationType |
|