Can I embed Html5viewer in ArcGIS HUB page?
I tried to use "App" or "iframe" layout card in ArcGIS Hub page but HUB page doesn't like to embed the geocortex html5viewer. I am getting error "Server name refused to connect". Any idea or solution?
-
Hi Hwa Saup,
I'm able to configure GVH 4.14.1 in an iframe using ArcGIS Hub with our public demo. That error message suggests that the server hosting your viewer may not be accessible by AGOL or possibly the server certificate may not be valid.
Thanks, Stefan
0 -
Hi Stefan. The viewer is accessible from internet and with valid certificate. Any setting required on geocortex side??
0 -
There doesn't appears to be any specific changes required on the server to make it available. Maybe there are settings on the AGOL organization settings that are preventing loading?
0 -
In my case, the org IT security has restrictions for content-security-policy. I can use frame-ancestors for a list of the domain which allows iframe of apps from my host server.
web config for the html5viewer application, I add the following and iframe of html5viewer works:
<httpProtocol allowKeepAlive="true">
<customHeaders>
<add name="Content-Security-Policy" value="frame-ancestors 'self' https://YOUR DOMAIN.hub.arcgis.com/*" />
</customHeaders>
</httpProtocol>
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare