-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
iOS App Transport Security not Loading any Resources (HTTP) #760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @AlecKriebel, I've found this guide to be helpful when working with ATS on iOS. As long as your resources are coming from the same domain, you'll probably want to follow Example B. If you're resources are coming from arbitrary domains, you'll most likely need to go with Example E. |
@mpaulsonco Thanks for the guide. Example B is certainly a work-around, and if I can't solve this issue, that is certainly what I will implement, but I can't imagine that loading resources from MongoDB using https is impossible. |
This is slightly disconnected from MongoDB, since clients actually won't ever talk to it. Both the workaround and plugging SSL Cert and moving your app to https will work. |
Heroku automatically makes all the other endpoints https secure so how can I get it to do the same for the files endpoint? |
@Charlesleonius did you figure out the answer to your question? Same issue for me here |
@jayliew I ended up using a client side workaround. This is essentially the code I used to get around it, maybe you can modify it for your needs:
|
@Charlesleonius thanks! |
Try with setting publicServerURL, setting HTTPS. That should work |
Can confirm this solved it for me when my images were not loading on a simulator from Parse on Heroku. Add this to Parse Server's index.js file where you create the server:
|
use it info.plist |
You should run on HTTPS. |
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 usinghttp
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:
How can I fix this issue?
The text was updated successfully, but these errors were encountered: