InfoPath browser forms cannot access REST web service over SSL

Here is an issue with Infopath browser forms accessing data in SharePoint via REST web service over SSL.

When I entered the REST url as https, InfoPath throws the following error: "The Internet address 'https://site/_vti_bin/listdata.svc/listname' is not valid."

When I used the http REST url, InfoPath takes it without any issue. Infopath form loads fine in client.

However, when I load the form in the browser, the following error was thrown by InfoPath: "XML data that is rquired for this form to function correctly cannot be found. " And I see "401 unauthorized" error in the ULS log.

 I have configured AAM to map both http and https internal urls to default zone, public https url.

RESOLUTION:

Set the DisableLoopbackCheck registry entry to 1 to ensure SharePoint can make a loopback call to itself.

Reference:

https://support.microsoft.com/kb/896861