Newer Version Available
BrowserPolicyViolation
Represents a violation related to the Trusted URLs and Trusted URLs
for External Redirects allowlists. These violations include blocked resource requests based
on your content security policy (CSP) and blocked external redirections. This object
is available in API version 61.0 and later.
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 |
|
| ViolationType |
|
Usage
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.
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.