# Show Iframe inside ionic app

**URL:** <https://forum.ionicframework.com/t/show-iframe-inside-ionic-app/113269>\
**Category:** ionic-v3\
**Created:** [November 24, 2017, 11:31am UTC](https://forum.ionicframework.com/t/show-iframe-inside-ionic-app/113269 "2017-11-24T11:31:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanzo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hanzo/32/118339_2.png) [@Hanzo](https://forum.ionicframework.com/u/Hanzo)\
**Post date:** [November 24, 2017, 11:31am UTC](https://forum.ionicframework.com/t/show-iframe-inside-ionic-app/113269/1 "2017-11-24T11:31:55Z")

</div>

Hi,

I’m trying to show an iFrame into a ion-content of a page.

Like this:

```auto

  <iframe width="100%" height="100%" src="url"></iframe>

```

When open the page the console returns the error

Refused to display ‘url’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’.

I’ve tried to add a proxy on the ionic.config.json file and use it into iframe src but it not works.

How can I use an iframe in ionic3 3.9.2

Thanks

---

<div class="post-metadata">

**Author:** ![user5555](https://avatars.discourse-cdn.com/v4/letter/u/8e7dd6/32.png) [@user5555](https://forum.ionicframework.com/u/user5555)\
**Post date:** [November 24, 2017, 2:50pm UTC](https://forum.ionicframework.com/t/show-iframe-inside-ionic-app/113269/2 "2017-11-24T14:50:13Z")

</div>

It’s a server thing: [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options)

---

<div class="post-metadata">

**Author:** ![Hanzo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hanzo/32/118339_2.png) [@Hanzo](https://forum.ionicframework.com/u/Hanzo)\
**Post date:** [December 5, 2017, 11:49am UTC](https://forum.ionicframework.com/t/show-iframe-inside-ionic-app/113269/3 "2017-12-05T11:49:01Z")

</div>

Then, Its posible to SET X-Frame-Options to ALLOW FROM: …?

Wich would be the origin of an Ionic App to set into ALLOW FROM? If the app runs into `ionic serve` o `ionic run -l` it should be localhost but wich one would be into a real device?

---

<div class="post-metadata">

**Author:** ![user5555](https://avatars.discourse-cdn.com/v4/letter/u/8e7dd6/32.png) [@user5555](https://forum.ionicframework.com/u/user5555)\
**Post date:** [December 5, 2017, 5:25pm UTC](https://forum.ionicframework.com/t/show-iframe-inside-ionic-app/113269/4 "2017-12-05T17:25:13Z")

</div>

I would just use “\*” , but if its important that no other website could embed your content You have to come up with another solution.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 10:02pm UTC](https://forum.ionicframework.com/t/show-iframe-inside-ionic-app/113269/5 "2021-07-19T22:02:19Z")

</div>

Closed on July 19, 2021, 10:02pm UTC


