Вот пример ответа для СУБД Cache...
<script language='cache' runat='server'>
d %response.SetHeader("Access-Control-Allow-Origin","*")
d %response.SetHeader("Access-Control-Allow-Methods","GET, PUT, POST, DELETE, OPTIONS")
d %response.SetHeader("Access-Control-Max-Age","1000")
d %response.SetHeader("Access-Control-Allow-Headers","Content-Type, Authorization, X-Requested-With")
s taskNS=$g(%request.Data("taskNS",1))
zn taskNS
&html<-#(taskNS)#->
s mvrNS=$g(^mvr,"mvr")
s view=$g(%request.Data("view",1))
s table=$g(%request.Data("table",1))
s page=$g(%session.Data(table_view_"Page"))
&html<#(page)#,>
d DATA^|mvrNS|mvr.sys.csp.list(view,table)
</script>