---
title: "Preview mode does not work on Salesforce Lightning"
slug: "preview-mode-not-working-on-salesforce"
updated: 2025-12-16T04:43:02Z
published: 2025-12-16T04:43:02Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.whatfix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview mode does not work on Salesforce Lightning

## Issue

Content created on Salesforce Lightning does not display in [Preview mode](/studio/docs/how-to-use-preview-mode-to-review-content), even though other published content appears on the application.

## Probable Cause

Salesforce Lightning uses a Content Security Policy (CSP) to prevent external code insertions. This restricts previewing functionality and affects only Preview mode; however, the content displays correctly in Production.

## Suggested Solution

Use a browser extension to disable the CSP policy when previewing content.

Note:

Use CSP extension only when using Preview Mode on Salesforce Lightning and disable the extension once testing is done.

Use the following steps to disable the CSP on Salesforce Lightning:

1. Install any one of the following extensions in your Chrome browser.
  - [Disable Content-Security-Policy](https://chrome.google.com/webstore/detail/disable-content-security/ieelmcmcagommplceebfedjlakkhpden?hl=en) ![disable.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/disable.png)
  - [Always Disable Content-Security-Policy](https://chrome.google.com/webstore/detail/always-disable-content-se/ffelghdomoehpceihalcnbmnodohkibj/related) ![always_disable.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/always_disable.png)

**Note**

This method is also supported on the Edge Browser extension. You can install the extension that works best on your browser and follow the steps below.

1. Before enabling the Preview Mode, click the CSP extension to enable it. ![enable.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/enable.png)
2. Activate the [Whatfix Preview Mode](/studio/docs/how-to-use-preview-mode-to-review-content) and the content displays in the preview mode.
3. Once testing is done, disable the extension by clicking it again. ![diable.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/diable.png)

Note:

If the issue persists, contact [support@whatfix.com](mailto:support@whatfix.com?Subject=Preview%20mode%20not%20working%20on%20Salesforce&amp;Body=Hello%20Team%2C%0A%0APreview%20mode%20is%20not%20working%20on%20Salesforce.%20Kindly%20provide%20assistance.%20%0A%0AThanks%20and%20regards.).

## Related

- [Salesforce Lightning Integration](/salesforce-integration-1.md)
