How do you add a default value to esri.config.defaults.io.corsEnabledServers, or how do you get WF5 from Portal?
I've a client who just moved a workflow from a standalone json file to their ArcGIS Portal, but when re-pointing to the new location in their GVH viewer it does not load. Instead, you get the message "esri.config.defaults.io.proxyUrl is not set. If making a request to a CORS enabled server, please push the domain into esri.config.defaults.io.corsEnabledServers.".
When the target server is pushed to the corsEnabledServers (as instructed by esri) with the dev console, the error goes away and we are able to operate. However, my attempt to add the server to the apparent configuration at Html5Viewer\Resources\Scripts\esri\config.js has failed to yield good results.
What am I missing here? What is the viewer's issue with loading from this other origin? The origin is configured to be accepted in the Essentials "Allowed Origins", so I don't see why the viewer is throwing the error at all. Is there a workflow 5 configuration that I'm missing to get the viewer to speak with Portal?
-
Hi @Zack Robison? ,
Could you tell me how you pushed the target server to the corsEnabledServers ?
Instructions given by esri aren't clear for me...
Thank you!
0 -
I followed the instructions on the "Configure Your Essentials domain in Your Viewers" section "Configure the Viewer to Make CORS Requests to Other Servers"
0
Please sign in to leave a comment.
Comments
2 comments