-
-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 404 on loading js lang file - MIME type ("text/html") i.o (javascript) #384
Comments
Hi, i have the same problem ... |
Same here, any insight @AmauriC? |
The mime type is managed by your servers, it's not setted by the script itself 🧐 Or I miss something? Someone as a live example? |
I have an example here: https://algosphere.org/ |
No adblocker on your browser? With Chrome/Mac GA is correctly loaded. |
Indeed it works when the adblocker is disabled. Can you do something to get around adblockers? Also, I've got this message: Can you add |
No, this is not possible to bypass an adblocker but there is an option to show a message if an adblocker is detected: Open a new issue for the cookie, I'll check ; ) |
Hi,
I've got an 404 error in the console for the
lang
file(s).Error states :
The script from “xxx.com/tarteaucitron/lang/tarteaucitron.fr.js?v=20191031” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
and
Loading failed for the <script> with source “xxx.com/tarteaucitron/lang/tarteaucitron.fr.js?v=20191031”.
When checking the
network tab
i can see theresponse headers / content-type
set totext/html
preventing the script to load.I have this issue only on production (site deployed to netlify).
In dev all is working well i have
Content-type: application/javascript
asResponse header
.Do you have any idea of where this issue lies and how to solve this out?
Thanks in advance.
The text was updated successfully, but these errors were encountered: