How to find out what is causing redirect of static content?

The issue was caused by some global cPanel WordPress configuration, to which I don’t have access, that blocks access to “sensitive” files, evidently based on the file name.