ERROR
When users try to view an HTML Viewer web site, they get this JavaScript error:
Permission Denied
The domain name specified in the browser does not match the domain name in the following lines in the ArcIMSParam.js file:
var imsURL = 'http://true/servlet/com.esri.esrimap.Esrimap?ServiceName=SanFrancisco';
var imsOVURL = 'http://true/servlet/com.esri.esrimap.Esrimap?ServiceName=SanFrancisco';
For example, if a user accesses the web site using http://204.225.113.3/website/sanFran, they will get a "Permission Denied" error.
There are three possible solutions.
var imsURL = 'http://' + hostName + '/servlet/com.esri.esrimap.Esrimap?ServiceName=SanFrancisco';
var imsOVURL = 'http://' + hostName + '/servlet/com.esri.esrimap.Esrimap?ServiceName=SanFrancisco';
http://204.225.113.3/website/sanFran
To access the site:
var imsURL = 'http://204.225.113.3/servlet/com.esri.esrimap.Esrimap?ServiceName=SanFrancisco';
var imsOVURL = 'http://204.225.113.3/servlet/com.esri.esrimap.Esrimap?ServiceName=SanFrancisco';
Get help from ArcGIS experts
Download the Esri Support App