My CakePHP v3.x application works fine in my local Vagrant environment, but when I deploy to Heroku, I get 403 errors for all javascript files located in /webroot/vendor/...
CSS and javascript files outside this directory load in order.
https://example.com/js/i_load_fine.js https://example.com/vendor/i_cause_403_error.js
/ PROCFILE
web: vendor/bin/heroku-php-apache2
This question sounds similar, but I checked and .htaccess already has the recommended RewriteCond:
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>
source share