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

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?

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

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.

2 „Gefällt mir“

But how do you modify. Whats the commant for deny

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