0

Css and js are returning with 404
enter image description here

Refused to apply style from 'https://domainnaime.com/pub/static/adminhtml/Magento/backend/en_US/jquery/uppy/dist/uppy-custom.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. I have checked all the htacess for each folders such as pub,media,static.

asked May 23 at 9:07

2 Answers 2

0

Try to run the following commands from the CLI and then check.

php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento indexer:reindex
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
sudo chmod -R 777 var/ generated/ pub/
answered May 23 at 10:45
2
  • Did all the things also checked the secure and unsecure from the core_config_data. Commented May 23 at 11:00
  • Yes, you need to check the proper URL are set there or not. Commented May 23 at 11:03
0

Try deleting the pub/static and var/view_preprocessed folders:

rm -rf pub/static/*
rm -rf var/view_preprocessed/*

After the above, run CLI commands:

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
sudo chmod -R 777 var/ generated/ pub/
answered May 23 at 12:22

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.