Jenkins stapler requests fail with no valid crumb
问题 I'm working on a Jenkins plugin and I'm now stuck at a point where I'm trying to get the return value of a method using a JavaScript proxy as described here. I simply want to call this kotlin method: @JavaScriptMethod fun getMonitoredJobsAsJSON(): JSONArray = toJSON(getObjectMapper().writeValueAsString(getMonitoredJobs())) as JSONArray From the jelly script using this: <script> var board = <st:bind value="${it}"/> board.getMonitoredJobsAsJSON(function(data) { // }) </script> This actually