Newer Version Available

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

CspTrustedSite

Represents a trusted URL. For each CspTrustedSite, you can specify Content Security Policy (CSP) directives and permissions policy directives. Each CSP directive allows Lightning components, third-party APIs, and WebSocket connections to access a resource type from the trusted URL. If the Permissions-Policy HTTP header is enabled, each permissions policy directive grants the trusted URL access to a browser feature. In API version 58.0 and earlier, CspTrustedSite included only CSP directives and was referred to as CSP Trusted Sites in Salesforce Setup. Available in API version 39.0 and later.

This guide only lists certain information for each object. For more information, including descriptions of the fields, see CspTrustedSite in the Object Reference for the Salesforce Platform.

Fields

Field Name Field Label Type Digits Length Precision Scale
CanAccessCamera camera boolean
CanAccessMicrophone microphone boolean
Context CSP Context picklist 255
CreatedById Created By ID reference 18
CreatedDate Created Date datetime
Description Description textarea 255
DeveloperName API Name string 80
EndpointUrl URL string 255
Id Trusted Site ID id 18
IsActive Active boolean
IsApplicableToConnectSrc connect-src (scripts) boolean
IsApplicableToFontSrc font-src (fonts) boolean
IsApplicableToFrameSrc frame-src (iframe content) boolean
IsApplicableToImgSrc img-src (images) boolean
IsApplicableToMediaSrc media-src (audio and video) boolean
IsApplicableToStyleSrc style-src (stylesheets) boolean
IsDeleted Deleted boolean
Language Master Language picklist 40
LastModifiedById Last Modified By ID reference 18
LastModifiedDate Last Modified Date datetime
MasterLabel Label string 80
NamespacePrefix Namespace Prefix string 15
SystemModstamp System Modstamp datetime