Danke für deine Hilfe
Funktioniert
const { default: fetch }=require("node-fetch");
const options = {
method: 'GET',
headers: {
accept: 'application/vnd.gridx.v2020.11.09+json',
authorization: 'tokenXXXXXXXXX'
}
};
fetch('https://api.gridx.de/clusters/XXXXXXX/appliances/XXXXXXXXXXX/constraints?order_by=priority&limit=1', options)
.then(response => response.json())
.then(response => setState('0_userdata.0.GridX_Daten.jsonDaten',JSON.stringify(response),true))
.catch(err => console.error(err));