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

wrong mime on Windows #802

Closed
niphlod opened this issue Jun 9, 2021 · 6 comments
Closed

wrong mime on Windows #802

niphlod opened this issue Jun 9, 2021 · 6 comments
Assignees
Labels

Comments

@niphlod
Copy link

niphlod commented Jun 9, 2021

Started minio as

SET MINIO_REGION=eu-west-1
SET MINIO_ROOT_USER=foo
SET MINIO_ROOT_PASSWORD=bar

minio.exe server --address :3000 "C:\some\folder"

Started console as

set CONSOLE_PBKDF_PASSPHRASE=something
set CONSOLE_PBKDF_SALT=difficult
set CONSOLE_MINIO_SERVER=http://127.0.0.1:3000

console-windows-amd64.exe server

When running on windows, browser reports this

Refused to execute script from 'http://127.0.0.1:9090/static/js/2.59d83018.chunk.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

As result, you get a blank page when trying to connect to http://127.0.0.1:9090

What am I doing wrong ?

@bexsoft
Copy link
Collaborator

bexsoft commented Jun 15, 2021

Hi!

Thank you for your message, what version of console are you running?

@niphlod
Copy link
Author

niphlod commented Jun 15, 2021

VERSION:
0.7.4 - 16647b8

@uhfath
Copy link

uhfath commented Jun 28, 2021

Same here.
Chrome 91.0.4472.124

Firefox (89.0.2) gives some more hints:
(X-Content-Type-Options: nosniff)
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options

@bexsoft
Copy link
Collaborator

bexsoft commented Jul 1, 2021

Hi!

There is a reported issue with golang & windows, on which MIME types can be changed by some applications and return non-valid MIME types: golang/go#32350. This issue is exclusive for Windows OS and doesn't apply for Linux / Apple users

As a temporary fix, you may want to try to insert the following keys in windows registry:

[HKEY_CLASSES_ROOT\.js]
"Content Type"="text/javascript"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.js]
"Content Type"="text/javascript"

Please let us know if you find any other issue, we will be happy to help!

@niphlod
Copy link
Author

niphlod commented Sep 7, 2021

confirmed, fixing the registry worked.
@harshavardhana : Sorry for forgotting to update this in the first place, you can close this.

@bexsoft
Copy link
Collaborator

bexsoft commented Sep 9, 2021

Applied a WA in #1014, Will be ready in version 0.9.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants