Top
Preview mode does not work on Salesforce Lightning
  • 16 Dec 2025
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Preview mode does not work on Salesforce Lightning

  • Dark
    Light
  • PDF

Article summary

Issue

Content created on Salesforce Lightning does not display in Preview mode, 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.

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

  2. Activate the Whatfix Preview Mode and the content displays in the preview mode.

  3. Once testing is done, disable the extension by clicking it again.
    diable.png

Note:

If the issue persists, contact support@whatfix.com.


Was this article helpful?


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.