Solved! Go to Solution.
esri.setRequestPreCallback(function (ioArgs) {
if (arcToken != '') {
if (ioArgs.url.indexOf('?') > -1) {
var url = ioArgs.url + '&token='+arcToken;
ioArgs.url = url;
}
if (ioArgs.content != {}) { ioArgs.content['token'] = arcToken; }
}
if (ioArgs.url.indexOf("GPServer") > -1) {
ioArgs.preventCache = true;
}
return ioArgs;
});
I do have this will, POST to ExportMap request because of long layerDefinitions parameter.
I created a thread regarding this issue but I can't find the solution:
esri js api post for exportMap
Using the proxy does not help or maybe I missed anything ?
Thanks