Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Enable Third-Party Components to Run When Lightning Locker Is Off
You can turn off Lightning Locker from the Relaxed CSP or Strict CSP security levels.
If LWS is enabled in the org, when you disable Lightning Locker in an Aura site, you actually disable LWS in the site. If you disable Lightning Locker in the LWR site, the site’s instance of LWS is disabled, even if LWS is enabled in the org. LWR sites can include third party libraries without disabling Lightning Locker or LWS. For more information see Integrate Third-Party Libraries Using the Privileged Script Tag in LWR Sites for Experience Cloud.
Configure Third-Party Aura Components to Run Without Lightning Locker
For third-party Aura components, managed package developers must configure the lightningcommunity:allowInRelaxedCSP interface for the component.
Configure Third-Party Lightning Web Components to Run Without Locker
For third-party Lightning web components, managed package developers must configure the lightningCommunity__RelaxedCSP value in the capability tag of the component’s configuration file.