Dear Esri Support,
We are having ArcGIS Server 10.4 and ArcGIS Portal installed on the same system. There is an immediate requirement of having webappbuilder so I downloaded the Web AppBuilder 2.2 and tried to install it on a development system (IIS webroot directory). I followed the steps given in the installation of Web AppBuilder. The web appbuilder opens (http://mysystem:3344/webappbuilder) in the web browser (FF ver 46) asking to enter portal URL and AppID.
I then logged into portal with portal admin privilege, in add item added the app (http://mysystem:3344/webappbuilder).
The problem comes once i start registering the app. The error shown up in the dialog reads as follows:
"unable to load https://<portalserver>/arcgis/sharing/rest/oauth2/registerApp status: 0"
Note:
In the firebug console window there is warning that
CORS origin request blocked: The same origin policy disallows the remote resource at https://<portalserver>/arcgis/sharing/rest/oauth2/registerApp (reason: CORS header 'Access-Control-Allow-Origin' does not match 'http://<portalserver>, *'
I tried making several attempts giving different redirect URIs but was not successful. It need to get this thing resolved immediately.
Please Help Me.
Ram Kumar.