Commit 6f76e308 authored by Jin's avatar Jin

Merge branch '12484-csrf-regression' into 'master'

csrf regression

#12484

See merge request !6
parents 4051f7fb 7f70c8d1
......@@ -469,7 +469,8 @@ var vdc_search_callback = function(data)
var circuit = circuits[i];
if ((circuit.isPresent === true) &&
(circuit.isValid === true) &&
(circuit.busMemberType === 33)) // vdc host
(circuit.busMemberType === 33) && // vdc host
(circuit.VdcModelUID === "libdsvdc:netatmo")) // netatmo vdc
{
devices.push(circuits[i]);
}
......@@ -507,7 +508,7 @@ $(document).ready(function()
{
$.ajaxPrefilter(function(options)
{
if (!options.beforeSend)
if ((!options.url.match(/\/api.netatmo.net\//)) && (!options.beforeSend))
{
options.beforeSend = function(xhr)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment