The information in this guide is BETA, please contact us directly if you wish to integrate with Salesforce.
Loading the SDK from Static Resources
Due to restrictions on loading of third-party ES6 modules, a non-modular build of STRICH needs to be uploaded to Static Resources.
Uploading non-modular STRICH build to Static Resources
At the time of writing, Lightning Web Components can not import ES6 modules from arbitrary URLs such as from a CDN. They can import from other components, but the file size is limited to 128 KB, making it unsuitable for STRICH, which currently bundles WebAssembly.
Upload the file strich_noesm.js as a static resource, do not add it to a zip archive beforehand:
Name: strich_noesm
Description: Non-modular build of STRICH SDK
File: <uploaded file>
After uploading, the static resource should look like this:
Configuring Content-Security Policies (CSP)
CSP are accessed by entering Setup, then navigating to Settings > Security > Trusted URLs in the sidebar.
Data URLs
STRICH embeds images and sounds, as well as WebAssembly code into its JavaScript bundle and loads these assets via Data URLs.
To enable loading from Data URLs, add a Trusted URL:
URL: data:
Directives: connect-src, img-src and media-src
License Service
To allow connections to the license service, add a Trusted URL:
URL: https://license.strich.io
Directives: connect-src
After setting up the trusted URLs, the dialog should look like similar to the screenshot below:
Strict Security
If you run into CSP issues, please check that the Security Level setting for Content-Security Policies is set to Strict CSP (see screenshot below).