We have an ArcGIS server hosted on Amazon. The maps and layers on that server are used to build a website (i.e. xyz.com/map. The problem is, that page always shows an error "load unsafe scritps". If anyone allows to load those scripts then the webpage works fine with all the contents. I have inspected the page source in google chrome nad it shows error/warnings such as
Mixed Content: The page at 'https://xyz.com/map/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://ec2-xyz-xyz-xyz-xyz.compute-1.amazonaws.com:6080/arcgis/rest/services/FinalMaps/MapServer/export?bbox=-8588464.498122405%2C5106604.985676053%2C-7998370.639760844%2C4564819.329190728&size=965%2C886&dpi=96&format=png24&transparent=true&bboxSR=3857&imageSR=3857&layers=show%3A46&f=json'. This request has been blocked; the content must be served over HTTPS.
Is there anyway so that the hosted layer on ArcGIS server can be accessed through a https link instead of http
The application was written to access the services over http. The application needs to be updated to access the services over HTTPS (recommended) or the application needs to be accessed over http, (not ideal).
Thanks a lot Jon. The way I understand it is, people who developed the website (njfloodalert.com/map) need to change their code to access the website as https. Am I right?
In this case, it will be about the website and GIS server. If you change the website to connect to the GIS server using HTTPS, you will start getting certificate errors if the GIS server hasn't been configured properly for HTTPS, i.e., simply changing from HTTP to HTTPS in the app/map may replace one kind of error with another.
Thanks Josh. Could you suggest anyway to configure my ArcGIS server so that the outward facing address would be with https. Right now it's showing that the outbound address is http://ec2-xyz-xyz-xyz-xyz.compute-1.amazonaws.com:6080/arcgis/rest/services/FinalMaps/MapServer
Is there anyway I can configure the ArcGIS server on AWS so that the outward address would be https://ec2-xyz-xyz-xyz-xyz.compute-1.amazonaws.com:6080/arcgis/rest/services/FinalMaps/MapServer
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.