Skip to main content

Block library previews never loading

Comments

3 comments

  • Ariel H.

    Hi,

    Thank you for the detailed information. 

    We’ve tested this on our end, but unfortunately, we were unable to replicate the issue in our test environment. You can see the test in this screencast: https://youtu.be/zk_ma8pBAow

    To investigate this further, we’ll need to inspect the issue directly on your website. Could you please provide temporary WordPress Administrator login details so we can take a closer look?

    Kindly send the following details to communitysupport@brizy.io:

    Community Support Link: https://support.brizy.io/hc/en-us/community/posts/38916148779026
    WordPress Admin URL:
    Username:
    Password:

    We’ll review it as soon as we receive the access.

    In the meantime, could you also try disabling all other plugins temporarily, leaving only Brizy and Brizy Pro active, and check if the issue still occurs? This will help us determine if another plugin is causing a conflict.

    Best regards,  
    Ariel H.

    0
  • Ariel H.

    Hi Afzul,

    Thank you for your cooperation.

    We were able to identify that the issue is caused by a conflict with one of the active scripts in the WPCode Lite plugin. When it is is disabled, the saved blocks work properly, as demonstrated in this screencast: https://youtu.be/XTJ7kk2a4Wk

    To fix the issue, you’ll need to check each of the active scripts in WPCode Lite to identify which one is causing the conflict.

    Alternatively, you can temporarily disable WPCode Lite whenever you need to make changes to your pages, then reactivate it after you have finished and published your changes.

    Best regards,
    Ariel H.

    0
  • Perispec Consulting

    Hi Ariel,

    Thank you for looking into this, and for pointing me to WPCode.

    I've found the snippet that caused it. It sends a Content Security Policy header on the front end of the site, and the list of allowed image sources didn't include your image server (cloud-1de12d.b-cdn.net).

    The editor canvas loads the front end inside an iframe, so the same header applied there. The browser then blocked every preview image in the block library.

    I've changed the snippet so the policy isn't sent when the page loads inside the editor. The previews now load normally, and visitors to the site still get the full set of security headers.

    It may be worth noting for other users. A strict security policy on the front end will also apply inside the Brizy editor, and the block library previews are usually the first thing to break.

    I've removed the temporary administrator access, so you're welcome to close the ticket.

    Kind regards,
    Afzul

    0

Please sign in to leave a comment.