B4X:
			
		
		
		    '#ATSEnabled: True
   '#PlistExtra: <key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><false/>
'#PlistExtra: <key>NSExceptionDomains</key><dict>
'list the excluded domains 
'#PlistExtra: <key>trafficnz.info</key><dict><key>NSIncludesSubdomains</key><true/><key>NSExceptionAllowsInsecureHTTPLoads</key><true/></dict>
'end of excluded domains
'#PlistExtra: </dict>
'#PlistExtra: </dict>I'm using the above code in the project attributes and a simple httprequest like so
			
				B4X:
			
		
		
		Sub getdatafromserver(thisurl As String)
    httpReq.Initialize("NZTA",Me)
    httpReq.Download(thisurl )
    httpReq.GetRequest.SetHeader("username","asdasd")
    httpReq.GetRequest.SetHeader("password","sdfsdfsdf")
End SubLog is
ResponseError: An SSL error has occurred and a secure connection to the server cannot be made., status code: 0
ErrorAn SSL error has occurred and a secure connection to the server cannot be made.
This only occurs when ATS is set to true
( I realise it's not mandatory yet)
This occurs even though I'm using a https:// url
There is another part of my program that uses one non https url ( to download a jpg) that I have accounted for in my whilelist but the error message is not related to this, it occurs when I download from the https:// url.
 
				 
 
		 
 
		