Js error when loading the admin menu

This is my first time installing Matomo and everything is working fine except 1 thing. When the admin menu is loading I get 403 response for two of the js-files it tries to load:

I am using:
Matomo version: 4.2.1
MySQL version: 8.0.23-0ubuntu0.20.04.1
PHP version: 7.4.3
Nginx version: 1.18.0

Permissions for the matomo/plugins/CoreHome is:
drwxr-xr-x www-data www-data
permission in /CoreHome/javascripts are:
-rwxr-xr-x www-data www-data

The other scripts seems to loading fine, why are these two not?


403 (especially of static files) are handled by your webserver. So I’d recommend you to look into the webserver log and check the server config and all .htaccess files (including the ones in parent directories)