-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Dashboard JS blocked because of a disallowed MIME type (“text/plain”) #10826
Comments
Hello @ziqbal, Thanks for your interest in Traefik! As mentioned in the migration guide:
Did you try to use the content-type middleware? |
@rtribotte Maybe I was not clear - the console logs are for the builtin traefik dashboard. |
Any new regarding this issue ? I'm encountering the same issue, even through, there is not problem navigating in the Dashboard. My setup for the dashboard is as follows (dynamic traefik.yml conffile): http:
middlewares:
authentication:
basicAuth:
users:
- '[email protected]:$apr1$<passwordhash>'
gzip:
compress: true
redirect-to-https:
redirectScheme:
scheme: https
traefik-dashboard-https:
chain:
middlewares:
- authentication
- gzip
routers:
traefik-dashboard-http:
entryPoints:
- http
middlewares:
- redirect-to-https
rule: Host(`traefik.srv01.konzeptplus-preview.ch`)
service: api@internal
traefik-dashboard-https:
entryPoints:
- https
middlewares:
- traefik-dashboard-https
rule: Host(`traefik.srv01.konzeptplus-preview.ch`)
service: api@internal
tls:
certResolver: letsencrypt |
Closed by #11109. |
Welcome!
What did you do?
Loaded dashboard, viewed developer panel and see console and network requests
What did you see instead?
Noticed blocked content in console and network traffic:
Loading module from “http://127.0.0.1:8080/dashboard/assets/_hacks.de068122.js” was blocked because of a disallowed MIME type (“text/plain”). [dashboard](http://127.0.0.1:8080/dashboard/#/) Loading module from “http://127.0.0.1:8080/dashboard/assets/_init.a396cff6.js” was blocked because of a disallowed MIME type (“text/plain”). [dashboard](http://127.0.0.1:8080/dashboard/#/) Loading failed for the module with source “http://127.0.0.1:8080/dashboard/assets/_hacks.de068122.js”. [dashboard:1:1022](http://127.0.0.1:8080/dashboard/#/) Loading failed for the module with source “http://127.0.0.1:8080/dashboard/assets/_init.a396cff6.js”.
What version of Traefik are you using?
3.0.3
What is your environment & configuration?
Ubuntu 24.04 / Firefox 127.0
If applicable, please paste the log output in DEBUG level
No response
The text was updated successfully, but these errors were encountered: