Good day, currently I am having a problem requesting a network for a website, back then I have no problem accessing it through network.request. Now It appears info.plist has changed and it won’t let me access the “http” url. Apparently the current info.plist automatically denies “http” request, but will only accept “https” request. How can I change the info.plist? My website is not secured with https. This error only occurs on devices, but on simulator. It works perfectly fine.
here is the error from Ipad:
Oct 26 15:03:14 My-iPad My\_App[284] \<Error\>: App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file. Oct 26 15:03:14 My-iPad My\_App[284] \<Warning\>: ERROR: network request failed: http://www.sample.com/sample/sample.php [-1022: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.]
and Here is my code for network.request:
network.request( "http://www.sample.com/sample/sample.php", "GET", networkListener, params )
NOTE: Don’t try to access the url. I just can’t post my website.
