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.

Field NameField LabelTypeDigitsLengthPrecisionScale
CanAccessCameracameraboolean    
CanAccessMicrophonemicrophoneboolean    
ContextCSP Contextpicklist 255  
CreatedByIdCreated By IDreference 18  
CreatedDateCreated Datedatetime    
DescriptionDescriptiontextarea 255  
DeveloperNameAPI Namestring 80  
EndpointUrlURLstring 255  
IdTrusted URL IDid 18  
IsActiveActiveboolean    
IsApplicableToConnectSrcconnect-src (scripts)boolean    
IsApplicableToFontSrcfont-src (fonts)boolean    
IsApplicableToFrameSrcframe-src (iframe content)boolean    
IsApplicableToImgSrcimg-src (images)boolean    
IsApplicableToMediaSrcmedia-src (audio and video)boolean    
IsApplicableToStyleSrcstyle-src (stylesheets)boolean    
IsDeletedDeletedboolean    
LanguageMaster Languagepicklist 40  
LastModifiedByIdLast Modified By IDreference 18  
LastModifiedDateLast Modified Datedatetime    
MasterLabelLabelstring 80  
NamespacePrefixNamespace Prefixstring 15  
SystemModstampSystem Modstampdatetime