Skip to content
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

Traefik v2.11.7 - Dashboard JS blocked because of a disallowed MIME type (“text/plain”) #10969

Closed
nuxwin opened this issue Aug 3, 2024 · 4 comments
Labels
area/webui kind/bug/possible a possible bug that needs analysis before it is confirmed or fixed. resolution/duplicate status/5-frozen-due-to-age

Comments

@nuxwin
Copy link

nuxwin commented Aug 3, 2024

Setup of Dashboard as follows (dynamic traefik conffile)

http:
  middlewares:
    authentication:
      basicAuth:
        users:
          - '[email protected]:$apr1$jah9libv$<passwordhash>'
    gzip:
      compress: {}
    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

Result to the following error in the Firefox console:

Capture d’écran 2024-08-03 à 18 38 48

What version of Traefik are you using?

Version: 2.11.7
Codename: mimolette
Go version: go1.22.5
Built: 2024-07-30T12:21:02Z
OS/Arch: linux/amd64

Similar issue with newest version

#10826

@nuxwin nuxwin changed the title Dashboard JS blocked because of a disallowed MIME type (“text/plain”) Traefil v2.11.7 - Dashboard JS blocked because of a disallowed MIME type (“text/plain”) Aug 3, 2024
@nuxwin nuxwin changed the title Traefil v2.11.7 - Dashboard JS blocked because of a disallowed MIME type (“text/plain”) Traefik v2.11.7 - Dashboard JS blocked because of a disallowed MIME type (“text/plain”) Aug 3, 2024
@nuxwin
Copy link
Author

nuxwin commented Aug 3, 2024

In fact, the file don't seem to exist. Tried to get them using wget from the traefik container directly and I get a 404 error. For other files, all was good. I do think the js file are build for production with tool like vite... or webpack.

@nuxwin
Copy link
Author

nuxwin commented Aug 3, 2024

Same thing with v3.1:

Capture d’écran 2024-08-03 à 21 23 21

The files don't seem to exist in fact :

Capture d’écran 2024-08-03 à 21 24 53

@rtribotte
Copy link
Member

Hello @nuxwin,

Thanks for your interest in Traefik!

As you noticed #10826 is already tracking this possible bug.
We are closing this issue as a duplicate accordingly.

duplicate of #10826

@rtribotte rtribotte added resolution/duplicate area/webui kind/bug/possible a possible bug that needs analysis before it is confirmed or fixed. and removed status/0-needs-triage labels Aug 5, 2024
@nuxwin
Copy link
Author

nuxwin commented Aug 5, 2024

@rtribotte No problem. The thing is: the files don't exist in fact. Those are part of build process but are not there , leading to 404 error with wrong type mime so. Note that filenames can change over each build.

@traefik traefik locked and limited conversation to collaborators Sep 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/webui kind/bug/possible a possible bug that needs analysis before it is confirmed or fixed. resolution/duplicate status/5-frozen-due-to-age
Projects
None yet
Development

No branches or pull requests

3 participants