I've confirmed all protocols are HTTP in the API calls. The error is coming back from the webmap, and the calls to load the ArcGIS Server layers are happening over HTTPS.
Is this an organizational account? Configure security settings—ArcGIS Online Help | ArcGIS
Allow access to the organization through HTTPS only—HTTPS is enabled by default. Keep this box checked to ensure that your organization's data as well as any temporary identification tokens that allow access to your data are encrypted during communications over the Internet. Uncheck the box to turn off HTTPS.
It is an organization account. I am not an administrator and I couldn't find anything in the AGO or Portal help regarding this. Would you happen to know where the switch is located?
Hi have the same problem. With jsapi version 3.10 works. service info is asked automatically over http. The new versions of the jsapi can only retrieve the layer info over HTTPS.
The server is a public server without HTTPS. I cant change it.
Its possible to force the new JSAPI 3 to retrieve the date over HTTP and no more over HTTPS?
I have not seen this issue in the 3.x API. In 4.x this is a known feature when using the 4.8 API and using a url for your app that has localhost of file:///, intead you have t use IP address or machine name.
please, try to use this service as FeatureLayer with the last 3.x API
Im loading an very easy webpage only with a Map and one Service. If a load the page from localhost or from LAN-IP make not a difference.
I would be happy with a client side solution for this issue.
Update: Thank you Robert, it was the same behavior as in 4.x API. (I think it had another problem with my test with the LAN-IP).
With an IP or with mache name works perfect. From Localhost or from 127.0.0.1 (Localhost-IP) uses the API HTTPS instead HTTP.