Select to view content in your preferred language

Proxy problem

2367
4
01-26-2016 01:10 PM
SebastienPelletier
Frequent Contributor

Hello,

I deployed a WebApp application on my server and I use a proxy to access a secure webmap in my arcgis online organization.


Everything works fine and users don’t need registered user/
password. But sometimes, for no reason, I have a connection popup. By clicking on Cancel and refreshing the page, all reloads correctly.

By checking with Fiddler , I can see that the call to webmap is well with the proxy

How can I disable this popup ?

help.png

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus

Sebastian,

   I would recommend you be less specific with your serverUrl in your proxy.config file.

I.e. <serverUrl url="http://___.maps.arcgis.com", username="x", password="y", matchAll="true" />

0 Kudos
SebastienPelletier
Frequent Contributor

Thanks Robert,

Unfortunately I had already tried and I had the same problem

0 Kudos
JamesCrandall
MVP Frequent Contributor

I'm not sure if this will resolve your issue, but we alter the tokenUtils.js file (located in the \jimu.js folder) and do the following before we deploy:

Replace:

def = esriNS.id.getCredential(sharingUrl);

With:

def = esriNS.id.getCredential(sharingUrl,{oAuthPopupConfirmation:false});

Also, set the popup to false in the registerOAuthInfo: function in the same file;

popup: false;

SebastienPelletier
Frequent Contributor

IThank you James,

tried the suggestion, I thought it had solved my problem because I had to access the site multiple times on different computers without problems until the popup back. Here is a detail of the error:

InvalidToken.PNG

0 Kudos