Description
When launching Web AppBuilder for ArcGIS (Developer Edition), clicking the Approve button after entering the Portal URL and the App ID in the configuration page fails and redirects the user to the same configuration page. In the startup.bat command prompt, the following error is returned:
Error:
no token is found, redirect /webappbuilder
Cause
There are two possible causes for the issue:
- The Portal URL was entered using http instead of https.
- The domain name of the machine is not listed in the Allow Origins settings in the Portal for ArcGIS Organization settings. Due to the cross-origin domain restriction, Web AppBuilder for ArcGIS is unable to communicate with Portal for ArcGIS if the domain name is not listed in the settings.
Solution or Workaround
Use one of the following solutions according to the cause.
- Use https instead of http for the Portal URL.
- Include the domain machine name in the Allow Origins settings.
- Navigate to the Portal for ArcGIS Home page.
https://[domain name]/portal/home
- Click Organization > Edit Settings.
- Click Security.
- If there are any existing entries under Allow Origins, fill in the URL of the Web AppBuilder for Developers (up to the port number) in the box and click ADD DOMAIN.
- Click Save.