# Can't Display webpage on InlineFrame

**URL:** <https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 15, 2023, 7:51pm UTC](https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243 "2023-09-15T19:51:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Craig](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@Ryan\_Craig](https://forum.inductiveautomation.com/u/Ryan_Craig)\
**Post date:** [September 15, 2023, 7:51pm UTC](https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243/1 "2023-09-15T19:51:10Z")

</div>

I am using an Inline Frame to try and display a cameras live view. When I copy the desired URL into the src property I get a "refuse to connect" in the Inline Frame. I am able to open the page, in a new tab, if I set the target of a button to the same URL. Not sure why I am getting this error.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/3/537faf2ee02ce9d1fdbc3a1c3638f06a34ce7cbd.png)

---

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [September 15, 2023, 8:32pm UTC](https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243/2 "2023-09-15T20:32:08Z")

</div>

If it works in its own page but not in an iframe, it might be an CSP/X-frame issue with the camera server.

See this similar topic:

> [@Cognex Web HMI with iframe](https://forum.inductiveautomation.com/t/cognex-web-hmi-with-iframe/70030):
>
> Has anyone tried to embed Cognex D900 Web HMI into ignition Perspective using iframe?

EDIT: Not CORS, sorry, that's something different

---

<div class="post-metadata">

**Author:** ![Ryan\_Craig](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@Ryan\_Craig](https://forum.inductiveautomation.com/u/Ryan_Craig)\
**Post date:** [October 31, 2023, 2:08pm UTC](https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243/3 "2023-10-31T14:08:16Z")

</div>

I am currently working with a Cognex In-Sight 9000 Camera and trying to get the HMI to be displayed through an IFrame component in Perspective. Whenever I fill in the src prop with the correct path, I get this.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/8/d8caab31e2e51cf37a240fd2397e20645a9660fa.png)

Does anyone know of anyway to make this work?  
Or if there is any other way to display this HMI, with another perspective component or workaround?

Any information would be helpful.

---

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [November 1, 2023, 2:01pm UTC](https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243/4 "2023-11-01T14:01:52Z")

</div>

Does the URL work fine in a browser? If so, maybe it's related to this:

> [@Cognex Web HMI with iframe](https://forum.inductiveautomation.com/t/cognex-web-hmi-with-iframe/70030):
>
> Has anyone tried to embed Cognex D900 Web HMI into ignition Perspective using iframe?

EDIT: Oh, I realized you posted before with a similar sounding issue:

> [@Can't Display webpage on InlineFrame](https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243):
>
> I am using an Inline Frame to try and display a cameras live view. When I copy the desired URL into the src property I get a "refuse to connect" in the Inline Frame. I am able to open the page, in a new tab, if I set the target of a button to the same URL. Not sure why I am getting this error.

Is this the same problem as back then? If it is, you can (and should, as multiple posting on the same subject is against the rules) bump that thread instead of posting a new one if you're still having issues with it.

---

<div class="post-metadata">

**Author:** ![Ryan\_Craig](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@Ryan\_Craig](https://forum.inductiveautomation.com/u/Ryan_Craig)\
**Post date:** [November 1, 2023, 2:05pm UTC](https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243/5 "2023-11-01T14:05:47Z")

</div>

Yeah, it is still the same issue.

I have also seen that thread before, but I was hoping that someone has found a solution since it was posted.

---

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [November 1, 2023, 2:08pm UTC](https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243/6 "2023-11-01T14:08:20Z")

</div>

In that case, I definitely recommend you bump the old thread instead with additional info, something like "I read that linked thread but [we're not allowed to set up a proxy/we tried to set up a proxy and it didn't work/some other issue] so I was hoping for a different workaround."

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 1, 2023, 3:58pm UTC](https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243/7 "2023-11-01T15:58:22Z")

</div>

You can start from the browser console where this isn't working. There might be some kind of a clearer indication of what the problem is.

---

<div class="post-metadata">

**Author:** ![jesse.daniels](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@jesse.daniels](https://forum.inductiveautomation.com/u/jesse.daniels)\
**Post date:** [May 8, 2024, 10:17pm UTC](https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243/8 "2024-05-08T22:17:04Z")

</div>

I have the same/similar issue. The developer of the webpage has the webpage restricted from being embedded.

You can find the information about this in the user manual for Inline Frame under the description section, [Perspective - Inline Frame | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-display-palette/perspective-inline-frame)

look at the x-frame-options under the response headers through a normal browser in web developer tools (network tab) to see how yours is set.

---

<div class="post-metadata">

**Author:** ![bryan.fletcher](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bryan.fletcher/32/8921_2.png) [@bryan.fletcher](https://forum.inductiveautomation.com/u/bryan.fletcher)\
**Post date:** [June 12, 2025, 11:18pm UTC](https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243/9 "2025-06-12T23:18:41Z")

</div>

**My experience:**  
When trying to load URLs in a _Perspective_ `inlineFrame`, I often encounter the dreaded **"refused to connect"** error if the URL roots don’t match. This happens when the `inlineFrame` source URL uses a root address that differs from the session gateway address — for example, one using an IP address and the other using a domain name.

Example:

- **Session gateway address:** `http://computer_name.team.com:8088/file.html`
- **inlineFrame source URL:** `http://computer_name:8088/file.html`

**Both URLs work fine in separate Chrome tabs** , but the `inlineFrame` will not connect if they don’t match exactly.  
**Solution:** Always ensure the `inlineFrame` source URL matches the session address:

- **Session gateway address:** `http://computer_name.team.com:8088/file.html`
- **inlineFrame source URL:** `http://computer_name.team.com:8088/file.html`  
or
- **Session gateway address:** `http://computer_name:8088/file.html`
- **inlineFrame source URL:** `http://computer_name:8088/file.html`  
or
- **Session gateway address:** `http://10.10.10.9:8088/file.html`
- **inlineFrame source URL:** `http://10.10.10.9:8088/file.html`

```python
self.session.props.gateway.address

```

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 13, 2025, 1:28am UTC](https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243/10 "2025-06-13T01:28:06Z")

</div>

> [@bryan.fletcher](#):
>
> if they don’t match exactly.

This is default behavior of modern browsers, for limiting malware. This behavior can be overridden by the server of the **inner** page (the one inside the IFrame) by having it set desired X-Frame-Options and/or Content-Security-Policy headers.

---

<div class="post-metadata">

**Author:** ![Mehdi\_MECHEDAL](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mehdi\_MECHEDAL](https://forum.inductiveautomation.com/u/Mehdi_MECHEDAL)\
**Post date:** [January 6, 2026, 11:45am UTC](https://forum.inductiveautomation.com/t/cant-display-webpage-on-inlineframe/79243/11 "2026-01-06T11:45:03Z")

</div>

Hello, what id the inner page was a perspective application ? there is no way to edit Content-Security-Policy!
