OctoBot-Tentacles icon indicating copy to clipboard operation
OctoBot-Tentacles copied to clipboard

nosniff header cause issue

Open damajor opened this issue 4 years ago • 2 comments

Hello,

It appears that on some platform the nosniff HTTP header is causing issues to execute Javascripts ressources correctly.

https://github.com/Drakkar-Software/OctoBot-Tentacles/blob/d5eb7d37b12bac3ecd48453847fd0d62bfa16fb2/Services/Interfaces/web_interface/security.py#L58

That prevents Javascripts files served as text MIME type to be executed. See screenshot below:

image

I think changing the MIME type for Javascript files should fix the issue.

Kr.

damajor avatar Mar 14 '21 23:03 damajor

Fixed in https://github.com/Drakkar-Software/OctoBot-Tentacles/commit/e92bc0d8056f00a6a7538d3e4a0dc0a558204306 It will be available in the next version

GuillaumeDSM avatar Mar 14 '21 23:03 GuillaumeDSM

We will close this issue at the next release

GuillaumeDSM avatar Mar 14 '21 23:03 GuillaumeDSM