Json is displayed instead of blocks

[ad_1]

Hello,
I encounter an issue with Gutenberg. When I go to the edit page, The page loads without any issue but I can’t see the blocks. Instead of it, I see a kind of JSON string with surrended by an html comment.

This seems to appear only in the production environment of the site which is working with CloudFront. When I try to backup and install it on my local environment, it works as expected.

I tried to disable all the plugins and switch to the default theme but no change.

Could someone help me with this?
Is it about a server or CloudFront configuration or maybe about the database?

Thanks for your help,
Loïc

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer