Closed
Description
Hi All,
I'm having an issue when attempting to load resources from within my Parse-Server backend iOS App.
App Transport Security is a feature on iOS apps that disallows connections if they are not https
, and in my case, any resource (images, etc) URLs are loaded using http
and so the connection is not allowed.
Note that I do not have this issue when loading normal data (user data, PFObjects, etc.).
My server URL client side and my SERVER_URL config parameter in Heroku are both https
. I am using Heroku+MongoDB to host this Parse server.
Here are NSLogs from my iOS device simulation when trying to load a resource:
Error Domain=Parse Code=100 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection."
UserInfo={code=100, NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection., originalError=Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection."
UserInfo={NSUnderlyingError=0x7f976fe2c800 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 "(null)"}, NSErrorFailingURLStringKey=http://<URL>.herokuapp.com/parse/files/sUnFtZuPieaQaONJIkUEEECtNDZiuCjQzUH4K9FY/de36470e632cc17c67eeb646e3d41f64_profilepicture.png, NSErrorFailingURLKey=http://<URL>.herokuapp.com/parse/files/sUnFtZuPieaQaONJIkUEEECtNDZiuCjQzUH4K9FY/de36470e632cc17c67eeb646e3d41f64_profilepicture.png, NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.}, temporary=1, error=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
How can I fix this issue?
Metadata
Metadata
Assignees
Labels
No labels