Error: Wrong MIME type

Hi guys,
I need your support by debugging.
I’ve managed to join Offline app with Kanboard.
This Plugin is available under this link.

The thing is: my colleague received an error after installing the plugin:

Refused to execute script from 'https://******/js/offline?' because its MIME type ('text/html') is 
    not executable, and strict MIME type checking is enabled.

I cannot reproduce this error by me locally, it works as it was planned and developed. I suppose this error appears somehow only by installing on other clients.

If someone has free 10 min to install this plugin and test it a little bit, I would much appreciate your solidarity.

P.S. I am not a professional developer, that’s why this bug can be a very simple thing. I’ve googled for this issue, but could not find any useful topics.

It has to be Content-Type: “text/javascript”, but it sends “text/html”

Only guessing…

Cache.

Could you install and test it a bit?
btw, I’ve made a plugin using yours as an example

1 Like

yeap. seems that the issue was in cache.
Thanks @creecros!
The topic can be now closed.

A rancher user? I’m not alone…

1 Like

@creecros
nope, cache deletion didn’t help, the problem is not yet solved (

one more thing, this plugin prevents adding anything to Kanboard/Projects (such as tasks, new Projects and so on) when it is activated. Don’t understand anything…

The Problem is at this line:
$this->hook->on("template:layout:js", array("template" => "js/offline"));