Laravel Filament server responded with a MIME type of "".
so i been deploying my laravel filament app to my server using apache, but having mainly 2 error
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.
and
async-alpine.js?v=3.0.0.0:1 Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: http://103.179.216.68/js/filament/forms/components/select.js?v=3.0.0.0
this is my apache config
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/Infakin-2.0/public"
ServerName panelinfakin.ictitlmi.info
<Directory "C:/xampp/htdocs/Infakin-2.0/public">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
allow from all
Require all granted
</Directory>
</VirtualHost>
and more info when development using php artisan serve the problem isnt appearing, thanks in advance
Jika sudah ada file .htaccess bisa ditambahkan atau diganti dengan code berikut:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle MIME type for JavaScript files
<FilesMatch "\.(js)$">
ForceType 'text/javascript'
</FilesMatch>
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]