ZeroTier API CORS (?) issue

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

You’re correct that this is a CORS issue. At the current time, we only support CORS requests from our own domains & applications.

Hey Grant.

Thank you for clarification. I want to share some thoughts later that week and close then.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.