DZNPhotoPickerController icon indicating copy to clipboard operation
DZNPhotoPickerController copied to clipboard

app transport security is blocking access to links that are not https schema

Open ebalassanian opened this issue 9 years ago • 6 comments

I don't know if there is a good fix for this. I tried adding in some code for google image search to drop links that are not https, but the results were poor at best. Thoughts?

ebalassanian avatar May 09 '16 04:05 ebalassanian

Is this documented somewhere, in Google's API?

dzenbot avatar May 10 '16 01:05 dzenbot

I didn’t see anything. The thumbs that google returns are all hosted by gstatic and HTTPS secured. But the soureURLs are usually not.

On May 9, 2016, at 6:30 PM, Ignacio Romero Zurbuchen [email protected] wrote:

Is this documented somewhere, in Google's API?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/dzenbot/DZNPhotoPickerController/issues/121#issuecomment-218036391

ebalassanian avatar May 10 '16 01:05 ebalassanian

Not sure how to bypass this TBH. Maybe with NSURLProtocol proxying?

dzenbot avatar May 10 '16 01:05 dzenbot

Sadly, online seach is quickly becoming too complex of a feature for my app :)

On May 9, 2016, at 6:39 PM, Ignacio Romero Zurbuchen [email protected] wrote:

Not sure how to bypass this TBH. Maybe with NSURLProtocol proxying?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/dzenbot/DZNPhotoPickerController/issues/121#issuecomment-218037660

ebalassanian avatar May 10 '16 01:05 ebalassanian

Google's API is unfortunately very wrong and unusable. Did you try Bing's instead?

dzenbot avatar May 10 '16 02:05 dzenbot

I haven’t. But I’ll work on that next. If I get it working, I’ll submit a PR. i have a feeling Bing will have the same issue though. They are crawling websites that are not https secured so they will likely serve up images that app security will not accept.

On May 9, 2016, at 7:41 PM, Ignacio Romero Zurbuchen [email protected] wrote:

Google's API is unfortunately very wrong and unusable. Did you try Bing's instead?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/dzenbot/DZNPhotoPickerController/issues/121#issuecomment-218044961

ebalassanian avatar May 10 '16 02:05 ebalassanian