# Call the URL in the same domain with Iframe in Shopware 6

**URL:** <https://forum.shopware.com/t/call-the-url-in-the-same-domain-with-iframe-in-shopware-6/96001>\
**Category:** General Questions (EN)\
**Created:** [29. August 2022 um 09:34 UTC](https://forum.shopware.com/t/call-the-url-in-the-same-domain-with-iframe-in-shopware-6/96001 "2022-08-29T09:34:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [29. August 2022 um 09:34 UTC](https://forum.shopware.com/t/call-the-url-in-the-same-domain-with-iframe-in-shopware-6/96001/1 "2022-08-29T09:34:28Z")

</div>

Hi

I am trying to access a page in the same domain using an iframe

I am getting the following error

`Refused to display 'http://localhost:8000/' in a frame because it set 'X-Frame-Options' to 'deny'.`

is there any way to call the URL in the same domain with Iframe in Shopware 6?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [29. August 2022 um 10:06 UTC](https://forum.shopware.com/t/call-the-url-in-the-same-domain-with-iframe-in-shopware-6/96001/2 "2022-08-29T10:06:46Z")

</div>

> **[X-Frame-Options - HTTP | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options)**
>
> The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page in a ,

It is a Apache or nginx configuration option, not Shopware.

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [29. August 2022 um 10:09 UTC](https://forum.shopware.com/t/call-the-url-in-the-same-domain-with-iframe-in-shopware-6/96001/3 "2022-08-29T10:09:19Z")

</div>

I have to override this file using service decorator

`Shopware\Core\Framework\Routing\CoreSubscriber`

and modify

`$response->headers->set('X-Frame-Options', 'deny');`

This solved my issue.

---

<div class="post-metadata">

**Author:** ![GlobenShop](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/globenshop/32/13058_2.png) [@GlobenShop](https://forum.shopware.com/u/GlobenShop)\
**Post date:** [27. Juli 2023 um 16:15 UTC](https://forum.shopware.com/t/call-the-url-in-the-same-domain-with-iframe-in-shopware-6/96001/4 "2023-07-27T16:15:04Z")

</div>

But how do you modify. Whats the commant for deny

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [27. Juli 2023 um 16:46 UTC](https://forum.shopware.com/t/call-the-url-in-the-same-domain-with-iframe-in-shopware-6/96001/5 "2023-07-27T16:46:12Z")

</div>

Unfortunately my answer wasn’t correct. Please use @abinjohnedamana answer.
