0

I am facing this error message "The CSS Style is not supported because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled ". Done with run upgrade compile and deploy command but still not result

Refused to apply style from 'http://13.251.235.211/pub/static/version1591722900/_cache/merged/3d04894622aa9431c93107ff82b415dc.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

enter image description here

Anonymous Record
  • 149
  • 1
  • 14

2 Answers2

1

The issue is actually in Url Rewrite

1st Try First Check that rewrite module is enabled or not in your apache server if not then enable and restart server

sudo a2enmod rewrite
service apache2 restart

if You are Still Facing this Problem

go to etc/apache2/apache2.conf

Change

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

to

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Then

service apache2 restart

`

if this doesn't work then most probably

Please Deploy Static Content with language Code Propel Something like that

php bin/magento setup:static-content:deploy -f en_GB // UK English
php bin/magento setup:static-content:deploy -f en_US // US English
php bin/magento setup:static-content:deploy -f pt_PT // Portoguese
User 69
  • 145
  • 14
0

There can be following reason

  1. check if .htaccess exist in pub/static/ folder ? if not copy from magento download
  2. check that if rewrite is enabled or not if not than enable it.To check this check if login link works without index.php ?
  3. check if pub/static folder is writable ?
ParulThakkar
  • 1,147
  • 3
  • 15