- Getting started with Salesforce Experience Cloud (this page)
- Lightning Web Components and the JavaScript Bridge
- Deep linking for Salesforce Experience Cloud
- Salesforce LWC component deployment and reference
Prerequisites
Before starting, confirm the following:- You have a Salesforce org with Experience Cloud enabled and at least one published Experience Cloud site.
- You have System Administrator access or equivalent permissions in the Salesforce org.
- You have a Median account. If not, create a Median account.
- (Optional) You have the Salesforce CLI installed for LWC component deployment. Installation instructions are at developer.salesforce.com/tools/salesforcecli.
Step 1: Retrieve your Experience Cloud site URL
Your Experience Cloud site URL is the starting URL Median uses to load your app.- In Salesforce Setup, navigate to Digital Experiences > All Sites.
- Click Builder next to your site.
- Copy the URL from the browser address bar, removing
/sor any trailing path. The URL should be in the formathttps://yourorg.my.site.com/sitename. For production apps, use your custom domain rather than the Salesforce-generated.my.site.comdomain. This is required for deep linking to work correctly, and it produces a cleaner experience for end users.

Salesforce Digital Experiences
Step 2: Create your app in Median App Studio
- Sign in to Median App Studio and create a new app.
- Paste your Experience Cloud site URL as the starting URL.
- Complete the basic branding configuration: app name, icon, and splash screen.
- Save the configuration. You do not need to publish the app yet.
Step 3: Configure content security policy in Experience Builder
Salesforce Experience Cloud enforces a Content Security Policy (CSP) to prevent Cross-Site Scripting (XSS) attacks. By default, this policy blocks JavaScript that originates from outside the Salesforce domain, which includes the Median JavaScript Bridge (window.median).
If the CSP is set to Strict, the window.median object will be unavailable inside your LWC components, and all native features including push notifications, biometric authentication, and barcode scanning will be non-functional.
To configure CSP:
- In Experience Builder, go to Settings > Security and Privacy.
- Set Security Level to Relaxed CSP: Permit Access to Inline Scripts and Allowed Hosts.
- Under Trusted Sites for Scripts, add the Median bridge distribution URLs. You can either self-host the NPM library or use a content distribution network like UNPKG to access the latest version of the Median JavaScript Bridge.

Salesforce Security & Privacy settings