-
-
Notifications
You must be signed in to change notification settings - Fork 878
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure #1022
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
I had the same problem, but thanks for this ticket [1] it's solved. Just had to add publicServerURL to my parse-server settings:
|
@luizmb, sorry for late reply. I tried your solution on the day you posted but I could not get it to work. I will continue to try but in case you find anything else, I would appreciate you letting me know. Thanks |
just an update as I continue to try figuring this out... seeing very odd results... For the parse instance that previously I said the However when I run exactly the same app on the simulator (iOS 9.3) signing in as exactly the same users with ATS kept on, I could not load a single image and got these same error msgs again for every image I try to download:
How could that be? Why would the same code in simulator try to load via http instead of https? |
Hi, Please try to run 'curl' against the class that holds your file:
The result must have "https" in the field:
If you don't set "publicServerURL", the URL generated won't follow the "https" pattern and the iOS SDK will try to download it using plain "http", which is now forbidden by Apple with few exceptions. Another suggestion: you can try to capture the communications of your device using Charles Proxy or TCPDUMP and check the URL used for fetching the image. But I would try the "curl" approach first, as most likely to be a server-side configuration problem. |
@luizmb Thanks, Luiz. The curl did return urls with https in them. I have managed to get it to work on an actual device with publicServerURL set per your suggestion. On the simulator though I get that very odd error. I may just have to leave it like that for now. Thanks a lot for your Nov post!
|
This issue has been automatically marked as stale because it has not had recent activity. If you believe it should stay open, please let us know! As always, we encourage contributions, check out the Contributing Guide |
I'm writing a swift iOS app that uses Parse hosted on Heroku. As far as I know according to Parse docs, all data transport is over HTTPS and I do not have the App Transport Security workaround done to info.plist (and intend to keep it that way). Up until now all Parse queries have executed without errors both on the simulator and on actual iphone running 9.3.5.
That is until I added this code which crashes both on the simulator and on the iphone due to a cleartext request made over HTTP. But why would a request be made over HTTP?
The offending line is isolated to
imageFile.getDataInBackgroundWithBlock({ ... })
since if that is commented out, the app does not crash on the iphone.The errors in console are:
To avoid the iOS app crashing, I have since amended the code above to the following but the same ATS errors appear in the console. Any assistance in the matter would be appreciated. Thank you.
(Cross-posted from http://stackoverflow.com/q/39029619/1827488)
The text was updated successfully, but these errors were encountered: