- This topic has 5 replies, 2 voices, and was last updated 5 months ago by
David.
-
AuthorPosts
-
August 18, 2020 at 1:52 pm #1408423
Surajit
Hi,
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 showthemes.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 policy
August 18, 2020 at 4:42 pm #1408559David
StaffCustomer SupportHi there,
try disabling Redis and any other CDNs, server caches and plugin caches. As they will interfere with the process.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 18, 2020 at 10:47 pm #1408830Surajit
Strange, when I took out the prefix *. to include subdomains from https://*.gpsites.co and included simple https://gpsites.co in the csp directive, things began working as normal. But is this normal behaviour? Am I missing something that can give me pains in the future?
August 19, 2020 at 3:35 am #1409155David
StaffCustomer SupportAs long as your server can reach https://gpsites.co then there should be no issues.
Generally it is server side caching / CDNs that will cause the problem.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 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 #1410165David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.