Hello. I have an elder Web sdk running on an 13.4 single-tennant-cloud. Now this customer are going to multi-tennant cloud. When I run the Web sdk app on MT I get CSRF_TOKEN_MISSING as response to all api-request. Here is an example of a api-request url: https://m3prdeuc1.m3.eu1.inforcloudsuite.com/m3api-rest/execute/PMS100MI/SearchMO;maxrecs=99999;returncols=PRNO,KSTR,FIDT,ORQT?SQRY=WHST%3A%5B%2020%20TO%2060%20%5D
Can this be solved in an easy way or do we have to rewrite the app to H5 SDK?
Here is example of js-code when doing the api-call.
const itemDataRaw = {}
const loadMOs = new Promise((resolve, reject) => {
$.getJSON(localRef + '/PMS100MI/SearchMO;maxrecs=99999;returncols=PRNO,KSTR,FIDT,ORQT', {
SQRY: 'WHST:[ 20 TO 60 ]'
})
.done((MOresult) => {
console.log(MOresult)
const MOArray = formatJSONMIObj(MOresult).MIArray
$.each(MOArray, (index, MO) => {
if (!itemDataRaw[MO.PRNO]) {
itemDataRaw[MO.PRNO] = {}
}
if (!itemDataRaw[MO.PRNO].MOArray) {
itemDataRaw[MO.PRNO].MOArray = []
}
itemDataRaw[MO.PRNO].MOArray.push(MO)
})
resolve()
})
})
