We just upgraded from Drupal 8 to Drupal 9, and now we have some css files not working in Chrome due to the below error.
Refused to apply style from '' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
These css files are in the private files directory for the site. I've verified that the mime_module is loaded as I can see this in the apache logs
module mime_module is already loaded, skipping
I also have
.htaccess files enabled using
AllowOverride All in the
I've tried putting the following in the
.htaccess file in the parent directory of the css files, in our
/etc/httpd/conf.d/drupal.conf, and in
/etc/httpd/conf/httpd.conf but nothing fixes the error
AddType text/css .css AddHandler text/css .css
AddType 'text/css; charset=UTF-8' css
<FilesMatch "(\.css)$"> AddType text/css .css Header set Content-Type text/css </FilesMatch>
Why won't apache set the correct