Hi,
I just git cloned trellis and bedrock and only installed one plugin named Elementor. That’s it. Rest everything is the default and ran the development server.
I keep getting mime type errors and I am unable to build using Elementor.
JS gives 404 and CSS doesn’t load.
(index):1 Refused to apply style from ‘http://testing.test/app/plugins/elementor/assets/css/common.css?ver=2.5.8’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):411 GET http://testing.test/app/plugins/elementor/assets/js/common.js?ver=2.5.8 net::ERR_ABORTED 404 (Not Found)
jquery-migrate.js?ver=1.4.1:23 JQMIGRATE: Migrate is installed with logging active, version 1.4.1
2(index):405 GET http://testing.test/app/plugins/elementor/assets/js/common-modules.js?ver=2.5.8 net::ERR_ABORTED 404 (Not Found)
(index):411 GET http://testing.test/app/plugins/elementor/assets/js/common.js?ver=2.5.8 net::ERR_ABORTED 404 (Not Found)
I have further described it here Github Issue
Could any one please help?
Seems that X-Content-Type-Options: nosniff causes it.
How do I correct these issues?
This is how my development wordpress_sites.yml looks.
wordpress_sites:
testsite.com:
site_hosts:
- canonical: testing.test
local_path: …/site # path targeting local Bedrock site directory (relative to Ansible root)
admin_email: admin@example.test
multisite:
enabled: false
ssl:
enabled: false
provider: self-signed
cache:
enabled: false