19
Views
2
Comments
 iframe HTTP over https

We have an iframe with http url in our portal and i disabled the https config in development environment life time when i create iframe outside it works but in outsystems never work because of mixed content 
so is there any way to embedded iframe with http url inside reactive web screen without using reverse proxy or editing the iis config 

2023-12-26 10-35-28
OutSystems Neo
Staff
AI Generated

Unfortunately, embedding an HTTP page in an HTTPS OutSystems reactive web screen without encountering mixed content errors is not feasible. This restriction is enforced by modern browsers and aligns with best practices for web security.

When an HTTPS page tries to include HTTP resources, browsers block the request to protect users from potential security risks. Disabling configurations in Lifetime or using development environments without HTTPS does not override browser-level restrictions.

From the examples in the articles retrieved:

  1. A potential workaround could involve using plugins or creating custom scripts to open HTTP pages externally, such as with an InAppBrowser plugin. However, this doesn't embed the page within your application directly http blockage in my app.
  2. You can also configure CSP (Content Security Policy) settings in Lifetime to allow specific external HTTP URLs, but this won't bypass browser-imposed mixed content restrictions I am using an external url in iframe, but its getting blocked on screen.

The best long-term solution is to ensure the target URL you're embedding has HTTPS enabled. If this is not possible, using an external redirection or reverse proxy remains the only viable option to ensure compatibility and security.

This answer was AI-generated. Please read it carefully and use the forums for clarifications
2019-01-07 16-04-16
Siya
 
MVP

Answer is NO – this is a browser-enforced security rule (mixed content is blocked). There is nothing you can configure in OutSystems (or any other platform) to allow an HTTP iframe inside an HTTPS app. The only solutions are to make the source available over HTTPS or proxy it.

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