If you are creating a new VertiGIS Studio Web app in version 5.29 or later, layers with stored credentials should work without any further configuration.
However, if you have an app that has been around for a while and has been upgraded to version 5.29 or later, you may see CORS errors when you try to load layers with stored credentials. This is due to some configuration that allows apps to work with Integrated Windows Authentication (IWA). This configuration is not compatible with stored credentials, and was removed for new apps in version 5.29, but it was purposely left in for upgraded apps to minimize post-upgrade authentication issues for those using IWA. For more information on this, please see our "Configuring Your VertiGIS Studio Web Apps to Accept Integrated Windows Authentication (IWA)" article.
Setup
NOTE: If you are using VertiGIS Studio Web version 5.28 or older, please upgrade to 5.29 or later before proceeding.
If you have an app that has been upgraded from an older version and cannot handle layers with stored credentials, here is how you can get it working:
- Find your app in VertiGIS Studio Item Manager (only available in SaaS) or ArcGIS Assistant. If neither of these options are available to you, you can export the app from Web Designer by clicking File > Download App, unzip the app folder, and use a text editor like Notepad to open the app.json file.
- View the JSON contents of your app. If you are using Item Manager, this will be in the Item Contents tab. If you are using ArcGIS Assistant, this will be under the Data section.
- Click somewhere within the JSON and press CTRL+F. A search box should appear in the upper right corner of the panel.
- Search for "trustedServers". You should see a "trustedServers" property with your Portal's host name in square brackets.
- Delete the property and its value.
- Ensure that the JSON is valid (i.e. no missing or extra commas) and save the changes. If you exported your app to make the edits, compress the files to a zip folder and import it into Web Designer by clicking File > Upload App. Layers with stored credentials should now load successfully.
Comments
0 comments
Article is closed for comments.