Views:


Applies to Product - Dynamics 365 Commerce

What’s happening?
The Site Builder is experiencing issues where CSS styles and scripts are missing during the preview of pages, leading to an inaccurate representation of the pages. The pages display correctly once published, but there is a need to preview them accurately before publishing.
 

Reason:
This appears to be related to the Content Security Policy (CSP) settings, which are blocking certain scripts from loading. Specific errors indicate that scripts from external sources are being refused due to CSP directives.
 

Resolution:
Check the Content Security Policy settings in the Site Builder.

  1. In the Site Builder, select the site you are working on.
  2. Navigate to Site settings, and then select the Extensions tab.
  3. On the Content Security Policy tab, under the script-src directive, add the full URLs of the external scripts that are being blocked.
  4. Save and publish the changes.