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

Cannot set mode due to possible incorrect MIME type on request #116

Open
johnslipper opened this issue Jan 23, 2018 · 1 comment
Open

Cannot set mode due to possible incorrect MIME type on request #116

johnslipper opened this issue Jan 23, 2018 · 1 comment

Comments

@johnslipper
Copy link

Hi there. I'm getting the following error trying to set the editor mode to JSON using the .setMode("brace/mode/json") function:

refused to execute script from 'https://localhost:8000/mode-json.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Could this be that the service worker request does not have the correct MIME type?

@walstper
Copy link

If question is still actual - this can happen if you pass incorrect 'mode' value.
Check it's validity.

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

No branches or pull requests

2 participants