hyperoslo / Lightbox

:milky_way: A convenient and easy to use image viewer for your iOS app
https://www.hyper.no
Other
1.63k stars 329 forks source link

No options to load unsecure images #257

Closed SalahAwadi91 closed 4 years ago

SalahAwadi91 commented 4 years ago

i cannot load images with unsecured url !!!!!!

VaslD commented 4 years ago

Did you enable/add App Transport Security (ATS) exceptions? AFAIK, Apple bans insecure connections by default, unless URLs are added to ATS exceptions or app has ATS disabled. You will receive warnings in Console during debugging. I don't think Lightbox itself controls this behavior.

Check this documentation for ATS-related declarations in Info.plist.

As suggested by the linked guide and as a best practice, you should always try to improve server-side security by adding HTTPS support first. Lowering app security should be a last resort.

3lvis commented 4 years ago

Thank you so much for answering this question @VaslD !

3lvis commented 4 years ago

The answer is correct, I'll close this issue.

SalahAwadi91 commented 4 years ago

Yes, it's working now, thank you