- This topic has 5 replies, 2 voices, and was last updated 5 months ago by David.
August 18, 2020 at 1:52 pm #1408423Surajit
It would help greatly if you can find the issue here, and probably the mistake I am making.
On first installation, site library images are not loading. Chrome developer tools show
themes.php?page=generatepress-site-library:1 Refused to load the image ‘https://gpsites.co/files/dev/screenshot.png’ because it violates the following Content Security Policy directive: “img-src ‘self’ https://*.gpsites.co https://*.jquery.com https://*.w.org https://*.redux.io https://*.wp.com https://*.gravatar.com data:”.
As far as I understand, I have included the policy https://*.gpsites.co in the img-src directive, as you can see.
I have cleared redis cache, opcache, cache-enabler and fvm multiple times.
Reloaded nginx multiple times and also flushed cache through wp cli to no avail.
Demo sites don’t load and stuck at the same point.
But I have added the required csp.
So what more can I do to import demo sites? Where am I going wrong?
And I have already tried out double ‘refres’ etc and all other visible solutions.
BTW, I have been able to import the demo site, but developer tools keep giving me warnings about various images missing due to the abovementioned content policyAugust 18, 2020 at 4:42 pm #1408559DavidStaffCustomer SupportAugust 18, 2020 at 10:47 pm #1408830SurajitAugust 19, 2020 at 3:35 am #1409155DavidStaffCustomer SupportAugust 19, 2020 at 6:30 am #1409369Surajit
Thanks a million. Yes caching is usually the first culprit. But in this case what I did not understand is why *.gpsites.co did not resolve to gpsites.co, and where things may be different. Knowing that would have helped in the future from avoiding issues.
As for this problem, it is solved. Thanks for your time.August 19, 2020 at 2:23 pm #1410165
- You must be logged in to reply to this topic.