Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Content of Admin panel is exposed it CDN and not very usable this way. As a local workaround I simply added to cdn.module
at the begining of
function cdn_file_url_alter(&$uri) {
if (\Drupal::currentUser()->isAnonymous() === false) {
return;
// Anonymous user...
}
Probably a better solution would be to add into /admin/config/services/cdn a list with available roles with checkboxes "enable CDN for this role". Default role set (anonymous, authenticated and administrator roles) seems to be a good starting point.
Comments
Comment #2
Wim LeersThere are two possible answers here, with each their own question:
So, are you sure you're using the CDN module in the intended way, i.e. to serve files, or are you trying to use it to serve the entire site from a CDN?
Comment #3
Wim LeersWithout a response, there's nothing I can do. When you do reply, please change the status to
again.