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

Error 'X-Content-Type: nosniff' is given since domoticz in beta mode #5

Open
fennec622 opened this issue Mar 18, 2018 · 0 comments
Open

Comments

@fennec622
Copy link

fennec622 commented Mar 18, 2018

Hi
first thanks for your job
I use personal version of monitor
and since i pass in domoticz beta, monitor doesn't work

[Error] Did not load script at 'http://10.0.0.1:8080/json.htm?type=devices&plan=1&jsoncallback=jQuery31108805318969018416_1521367357609&_=1521367358460' because non script MIME types are not allowed when 'X-Content-Type: nosniff' is given.

When i write

http://10.0.0.1:8080/json.htm?type=devices&plan=1&jsoncallback=jQuery31108805318969018416_1521367357609&_=1521367358460

directly in browser all is ok

I use monitor with apache2

Since 5 days github of domoticz change

request_handler.cpp add
//browser support to prevent XSS
reply::add_header(&rep, "X-Content-Type-Options", "nosniff");
reply::add_header(&rep, "X-XSS-Protection", "1; mode=block");

Can you help me

i thinks must add script type text/json from all request

Thanks

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

1 participant