I have built several applications that use the ArcGIS JS API and secured services via ArcGIS Server. All of the apps have the same process of generating tokens on the server ( via php request ) and passed to the client where it is appended to the service urls. Recently we have noticed an issue when we attempt to upload an attachment. When the
addattachment method is called the request is sent to the login page for ArcGIS Server. It appears that the request is not honoring the token.
Anyone run into this issue before? I have tried a proxy and
esrirequest to modify the request but still doesn't work. I have also signed into ArcGIS Server and was able to upload an attachment through the GUI form there so the service is working.