Erreur de commande avec domoticz beta 'X-Content-Type: nosniff'

Forum dédié aux interfaces personnalisables : Custom Pages, Reacticz, Domoboard...
fennec
Messages : 6
Inscription : 31 mars 2016, 20:32

Erreur de commande avec domoticz beta 'X-Content-Type: nosniff'

Message par fennec »

Salut
je suis passé à domoticz beta et depuis sur les navigateur recents les commandes ne passent plus
Dans les dernieres versions domoticz ils ont activés 'X-Content-Type: nosniff'

Du coup a chaque request j'ai un beau

[Error] Did not load script at 'http://10.0.0.1:8080/json.htm?type=devi ... 1367358460' because non script MIME types are not allowed when 'X-Content-Type: nosniff' is given.

Quand je tape la requete direct dans le navigateur ca passe

http://10.0.0.1:8080/json.htm?type=devi ... 1367358460

le tout sur apache2

github domoticz

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");

j'ai changé ajaxsetup mais rien a faire

$.ajaxSetup({
dataType: "json",
contentType: "application/json",
async: true,
global: false,
timeout: connectTimeout,
cache: false
});

Une idée ?

Merci
Répondre