NETRON Web API

We have had many systems integrators ask for a remote protocol to recall Cues in NETRON devices through the ethernet connection.

This API is now available as part of NETRON 2.9.4 and documented in this PDF:

2 Likes

Hello,

Through a web navigator, we can’t call the API because of CORS (the API is does not allowed to get content when the origin is not the same than the device).

You can give a try from a console:

console.clear()

fetch('http://2.143.56.6/Setting.json')
      .then(async response => {
            console.group('Setting.json')
            console.log('Response', response)
            console.log('Content', await response.text())
            console.groupEnd()
      })

fetch('http://2.143.56.6/IP.json')
      .then(async response => {
            console.group('IP.json')
            console.log('Response', response)
            console.log('Content', await response.text())
            console.groupEnd()
      })

fetch('http://2.143.56.6/index.json')
      .then(async response => {
            console.group('index.json')
            console.log('Response', response)
            console.log('Content', await response.text())
            console.groupEnd()
      })

fetch('http://2.143.56.6/DMXPorts.json')
      .then(async response => {
            console.group('DMXPorts.json')
            console.log('Response', response)
            console.log('Content', await response.text())
            console.groupEnd()
      })

As result, from the web remote we get successful result:

While from anywhere else, it is blocked by CORS policy:

Is it possible to open the API a little bit more please?