web view does not load html with embedded img

Hi all,

Only in iOS9 !!

WebView fails to load an HTML with embedded <img> tag with src url. I get a broken image on the webview. Why is that?

I don't want to change plist to disable ATS.

Do you have some insights what can I do?

Do you have any errors in your console log while running the app?


If you wish to allow loading of non-HTTPS content in an app compiled against iOS 9, you will need to add the appropriate exceptions to your info.plist. Please see the Application Transport Security Technote for more information.

Thank you TidBit for your care. I actually have HTTPS content in the HTML so I don't want to add the exception in info.plist.

And I do not get any error on the console.


If I open the img url directly from the device Safari - it shows loads well.

However, if I open the HTML with the img from my App (the App loads it on Safari) - then Safari shows a broken image. The HTML is local, i.e: the App generates it on the device.

What could be the problem?

web view does not load html with embedded img
 
 
Q