Esri / edit-template

Edit is a configurable application template that enables you to provide basic editing capabilites for editable layers in a web map.
10 stars 23 forks source link

Proxy configuration under js 3.22 #10

Open tkuhnmpc opened 7 years ago

tkuhnmpc commented 7 years ago

Kelly,

We were unsuccessful in configuring proxy to secure map services with the version referencing the 3.22 api. When we rolled JavaScript library back to version 3.21, things worked as they have with some of the other application templates. I was unable to locate the 3.22 documentation to see if the urLUtils (urlPrefix and proxyURL) are available or referenced differently, but thought it best to mention this to you.

Tim

kellyhutchins commented 7 years ago

Nothing should be different than it was at 3.21. Which version of the app proxy are you using?

tkuhnmpc commented 7 years ago

On the server side? Server is 10.22 - but I'd have to check with others for the version of proxy if that is what you are looking for.

tkuhnmpc commented 7 years ago

Kelly - Application proxy is 1.1.0.

kellyhutchins commented 7 years ago

I ran some tests and its working for me. Are you getting any error messages?

tkuhnmpc commented 7 years ago

We ran the application through an app proxy running 1.1.2 and we are still experiencing the issue. We were able to replicate the issue on another application by changing the reference from JS 3.21 to 3.22, using both versions of the proxy we had running. This may be something specific to our instance and we have a developer who's going to open a ticket directly with you all. He's speculating there may be a change in the API related to CORS. We are getting some errors in the browser console related to preflight requests not passing access control checks that are leading him in this direction.