ERROR
When attempting to add an ArcGIS Server web service through HTTP to an ArcGIS Online web map through HTTPS, the following error message may be returned:
Error: Unable to establish a secure connection to the layer. The layer, [layername], cannot be added to the map.
The ArcGIS Online organization allows access through HTTPS only; therefore, content accessed through HTTP cannot be added to the web map.
Please see the following ArcGIS Online help topic: Configure security settings
Add the GIS web service through HTTPS.
Get help from ArcGIS experts
Download the Esri Support App