# StorefrontController blockiert SAMEORIGIN Iframes

**URL:** <https://forum.shopware.com/t/storefrontcontroller-blockiert-sameorigin-iframes/69304>\
**Category:** Programmierung\
**Created:** [1. September 2020 um 10:46 UTC](https://forum.shopware.com/t/storefrontcontroller-blockiert-sameorigin-iframes/69304 "2020-09-01T10:46:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moorleiche](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@Moorleiche](https://forum.shopware.com/u/Moorleiche)\
**Post date:** [1. September 2020 um 10:46 UTC](https://forum.shopware.com/t/storefrontcontroller-blockiert-sameorigin-iframes/69304/1 "2020-09-01T10:46:23Z")

</div>

@Shyim‍

Ist es möglich hier eine Anpassung zu machen, sodass ich in meinem Controller selbst bestimmen kann, dass der Inhalt als IFrame geladen werden kann oder nicht?

[https://github.com/shopware/platform/blob/master/src/Core/Framework/Routing/CoreSubscriber.php#L47](https://github.com/shopware/platform/blob/master/src/Core/Framework/Routing/CoreSubscriber.php#L47)

Beispiel:

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/4/43b33430ee4100e1f577f01347c1147be4104c1a.png)

---

<div class="post-metadata">

**Author:** ![Moorleiche](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@Moorleiche](https://forum.shopware.com/u/Moorleiche)\
**Post date:** [1. September 2020 um 10:55 UTC](https://forum.shopware.com/t/storefrontcontroller-blockiert-sameorigin-iframes/69304/2 "2020-09-01T10:55:31Z")

</div>

Dieser Workaround funktioniert erstmal, aber wäre evtl gut. Wenn im Core geprüft wird, ob dieser Header bereits gesetzt wurde und dementsprechend überspringt.

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/e/e64e159b81e633a64099f024b34f18b6ad938c2c.png)
