The jsreport-proxy is allowed only in the jsreport scripts
https://jsreport.net/learn/scripts

It is not supported in the templating engines, because it is anyway asynchronous and templating engine supports only sync functions.
If you put it to your global asset helpers, it gets extracted into the templating engine helpers and crashes.