Troubleshooting
Why an iFrame Child HMI Works in Designer but Not in the Browser
Short answer
The child HMI at https://192.168.1.51/webiq/hmi shows in WebIQ Designer's iFrame widget but stays blank in Firefox because the browser treats the parent and child as different origins, so framing is refused and the child's session cookie is dropped. Nothing in the iFrame widget can override this. Publish the child behind the ctrlX reverse proxy under the parent's host and point the iFrame at that path.
On this page
The child HMI at https://192.168.1.51/webiq/hmi shows inside the iFrame widget of WebIQ Designer 2.16.4 but the frame stays blank in Firefox, with the child's login page looping, because the browser refuses to frame a page from a different origin and drops the child's session cookie as a third-party cookie. The parent at https://192.168.1.1/webiq/hmi and the child differ in host, so the browser treats them as two origins. No iFrame setting changes that. The fix is to publish the child web server behind the ctrlX reverse proxy so both projects answer from https://192.168.1.1, then point the iFrame at the published path. The checks below prove where the fault sits, name it from the browser's own message, and confirm the repair end to end.
Why Designer shows it and the browser will not #
Designer is an authoring tool with a preview, not a browser. It rendered the child because you accepted the certificate for 192.168.1.51 in its pop-up, and because the preview does not apply the framing and cross-site cookie rules a real browser enforces. As soon as the project runs at https://192.168.1.1/webiq/hmi in Firefox, the two pages are different origins and those rules fire.
| Check | WebIQ Designer | Browser |
|---|---|---|
| Certificate for 192.168.1.51 | Accepted once via the pop-up | Must be trusted by the browser itself |
| Cross-origin framing | Not enforced | Refused unless the child allows the parent's origin |
| Child session cookie in the frame | Not restricted | Handled as a third-party cookie and can be dropped |
Prove the split in one step: open https://192.168.1.51/webiq/hmi directly in a browser tab. If it logs in and shows live values there, the child project, its tags and its controller link are healthy, and the fault is only in how the page is embedded. The child keeps exactly the controller connection it uses standalone — the setup used for showing PLC variables in WebIQ over OPC UA on a ctrlX CORE — and framing does not touch it.
The origin calculation that decides it #
A browser computes an origin from three parts: scheme, host and port. The path is not part of it, and https implies port 443.
- Parent: scheme https, host 192.168.1.1, port 443, origin https://192.168.1.1
- Child: scheme https, host 192.168.1.51, port 443, origin https://192.168.1.51
Compare field by field: the schemes match, 443 matches 443, but 192.168.1.1 does not equal 192.168.1.51, so the origins differ and the frame is cross-origin. Had the child run on http, the triples would differ in scheme and port as well, and the HTTPS parent would block it separately as mixed content.
A web server declares who may frame it in response headers. X-Frame-Options DENY refuses framing altogether, same-origin included; SAMEORIGIN refuses every frame whose parent comes from another origin. CSP frame-ancestors is the newer directive that does the same job with an explicit origin list, and most servers ship both. No X-Frame-Options value admits a frame from a different origin, so a parent at 192.168.1.1 is refused by a child at 192.168.1.51 whatever the widget does. An HTTPS page may frame HTTPS content only; HTTP content and HTTP subresources on an HTTPS page are blocked as mixed content.
This is not a WebIQ quirk: embedding third-party websites in Ignition Perspective using an iframe fails the same way whenever the target refuses framing, because the rule belongs to the browser, not the HMI.
Read the browser message before changing anything #
Press F12 on the parent page in Firefox, reload, and read the Console and Network tabs. One line names the exact block:
- Refused to display in a frame, naming X-Frame-Options or frame-ancestors — the child server refuses framing by another origin; the fix is one origin, below.
- Mixed content blocked — the parent is HTTPS while the child or one of its resources is HTTP; move the child and its resources to HTTPS.
- Certificate error for 192.168.1.51 — the browser has not trusted the child's certificate; open the child URL directly once and accept it, or install a certificate the browser trusts.
- Blocked a frame with origin from accessing a cross-origin frame, or a CORS error — script on one origin reaching into the other; same one-origin fix.
Fix the line you actually see before touching the project.
Why the login page loops inside the frame #
The child authenticates, sets its session cookie and reloads. Inside a cross-origin frame the browser handles that cookie as a third-party cookie and can discard or refuse it, so the next request arrives unauthenticated and the server answers with the login page again — indefinitely. In the Network tab the login response sets a cookie and the following request omits it, or the cookie is flagged as blocked; that is cookie scope, not wrong credentials. Allowing framing alone would not save you either: even with framing permitted, the login state stays third-party until both pages share one origin.
Serve the child under the parent's origin #
The ctrlX reverse proxy exists for this case: the web servers are published under one URL so the browser sees one origin.
- Open the reverse proxy configuration on the ctrlX CORE serving the parent, and read the reverse proxy documentation for your firmware for how a web server is registered and under which path it is published.
- Register the child's WebIQ web server so it answers under a path of https://192.168.1.1/ instead of its own host.
- Check whether that proxy accepts an upstream on another device. If it publishes only web servers on the same ctrlX, run both WebIQ projects on one CORE, or put an external reverse proxy in front of both HMIs and publish them under one host name and port.
- Browse to the proxied child address on the parent's host: it must load and log in as a top-level page, with no prompt for 192.168.1.51.
Keep the published page on the plant network; a reverse-proxied control HMI must not become reachable from the internet without its own access control.
The decision by case: both projects can live on one ctrlX CORE, so register the child with the reverse proxy and repoint the iFrame. The child must stay on the sub-machine's controller, so front both HMIs with an external reverse proxy under one host name and port. You control the child's headers and the child needs no login, so CSP frame-ancestors naming the parent origin permits the display, but cookies remain third-party, so any login still forces the one-origin route.
Repoint the iFrame and confirm end to end #
- In WebIQ Designer, set the iFrame URL to the parent host plus the published path, or to a relative path, which is same-origin by construction — not to https://192.168.1.51/webiq/hmi.
- Deploy the parent project and hard-refresh in the browser (Ctrl+F5) so a cached refused frame is not reused.
- With F12 open, confirm the Console reports no frame, mixed-content, certificate or CORS errors.
- Confirm the child login appears once, the child HMI displays, and the login page does not return.
- Change a value at the child machine and watch it update inside the frame, then repeat from a second browser or PC.
Touch inside the framed page now follows ordinary browser touch handling — the same rules behind why swipe scrolling fails on a touchscreen web HMI page — so prove gestures in the browser, not only in the Designer preview.
Questions asked
Can the iFrame widget or a WebIQ setting bypass the browser's framing block?
No. The browser enforces the block from the page origins and the child server's response headers, so no widget property, project setting or firmware option overrides it. The only reliable removal is serving parent and child from one origin, which on ctrlX means publishing the child behind the reverse proxy under the parent's host.
Will accepting the child's certificate stop the login loop?
Only the certificate error. The loop comes from the child's session cookie being handled as a third-party cookie inside a cross-origin frame, and that continues after the certificate is trusted. Once both projects are served from the parent's host, the same cookie is first-party and the loop stops.
Does the child's PLC data pass through the parent project?
No. The framed page keeps its own configured connection to its controller, exactly as when opened in its own tab. The parent neither proxies nor re-tags the child's data; only the display is nested. That is why the child can be healthy as a standalone page and still show nothing inside the frame.
Can I embed the child over HTTP to avoid the certificate prompt?
No. An HTTPS page cannot frame HTTP content; the browser blocks it as mixed content, and the rule covers subresources too. Plain HTTP would also carry the child's login credentials in clear text on the network. Keep the parent, the child and every resource they load on HTTPS, and trust the certificate properly.
How do I find the path for the iFrame URL after proxying?
The path is whatever the reverse proxy registration publishes for the child's web server; the reverse proxy configuration shows it, and the documentation states the exact syntax per firmware version. The iFrame URL is then the parent host followed by that path, and a relative path works too because it stays same-origin by construction.