588
Views
4
Comments
Solved
Image External link
Question

Hey,

I am trying to add an image with type external url,


When the external link starts with "https", Its working fine,

But if the link is "http", it shows a broken image.


How can i fix this?


Thanks,

Keerthi

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution

HTTP is inherently unsafe, so when you load a page over HTTPS, but include HTTP, the browser engine may refuse to load it (this would otherwise be a security risk). If you Google for "loading http images over https" (without the quotes), you'll get some more info.

There are ways to get around this, but they involve fetching the images by e.g. a REST service, which may be overkill for your application. Best is to just use HTTPS everywhere.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Keerthi,

This is likely because your page showing the image uses HTTPS, and the browser blocks access to resources that are loaded via HTTP.

2026-02-19 02-54-36
Keerthi Vasan V

Hey kilian,


Thanks for the reply, i am using this in my mobile application, when i try to test this by opening it in browser, even the image with http link loads, but when i test that in my mobile. Its a broken image.


Is there any way to solve this!!?

Why mobile is not supporting the http !??


Thanks,

Keerthi

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution

HTTP is inherently unsafe, so when you load a page over HTTPS, but include HTTP, the browser engine may refuse to load it (this would otherwise be a security risk). If you Google for "loading http images over https" (without the quotes), you'll get some more info.

There are ways to get around this, but they involve fetching the images by e.g. a REST service, which may be overkill for your application. Best is to just use HTTPS everywhere.

2018-11-06 14-26-44
Suraj Borade

Also please note that mobile applications built over Outsystems plaform support https only.So http will work or not you cannnot guarantee.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.