I want to provide users a small UI to check for available networks and members using the API and user access token.
I am trying with Node.js:
const response = await fetch('https://api.zerotier.com/api/v1/network', {
method: "GET",
headers: {
'Authorization': `token ${token}`,
'Content-Type': 'application/json'
}
});
but getting error:
I guess this is related to CORS? Any chance to get this working by adoption on client side or is proxy best option? Looking forward to some input here.
Thanks a lot for any support.
Related to: Zerotier-API-error-CORS-error