Newer Version Available

This content describes an older version of this product. View Latest

CspTrustedSite

Represents a CSP Trusted Site. The Lightning Component framework uses Content Security Policy (CSP) to impose restrictions on content. The main objective is to help prevent cross-site scripting (XSS) and other code injection attacks. To use third-party APIs that make requests to an external (non-Salesforce) server or to use a WebSocket connection, add a CSP Trusted Site.

For more information, see CspTrustedSite in the Object Reference.

Fields

Field Label API Field Name Type Digits Length Precision Scale
Active IsActive boolean
Context Context picklist 255
Created By ID CreatedById reference 18
Created Date CreatedDate datetime
Deleted IsDeleted boolean
Description Description textarea 255
Label MasterLabel string 80
Last Modified By ID LastModifiedById reference 18
Last Modified Date LastModifiedDate datetime
Master Language Language picklist 40
Namespace Prefix NamespacePrefix string 15
System Modstamp SystemModstamp datetime
Trusted Site ID Id id 18
Trusted Site Name DeveloperName string 80
Trusted Site URL EndpointUrl string 255
Whitelist site for connect-src IsApplicableToConnectSrc boolean
Whitelist site for font-src IsApplicableToFontSrc boolean
Whitelist site for frame-src IsApplicableToFrameSrc boolean
Whitelist site for img-src IsApplicableToImgSrc boolean
Whitelist site for media-src IsApplicableToMediaSrc boolean
Whitelist site for style-src IsApplicableToStyleSrc boolean