Greg
Greg

Reputation: 8945

iframe does not load website from local network (but loads external sites fine)

I would like to embed a few local apps into a single website.

The code below successfully loads external sites but does not load apps running on the local network.

For example http://app.local loads when accessed from the browser directly but does not load when in the iframe.

html>
    <body>
        <iframe src="http://app.local" width="100%" height="100%"></iframe>
    </body>
</html>

Why is this happening and how can I address it?

Upvotes: 0

Views: 395

Answers (1)

Faegy
Faegy

Reputation: 992

This could be a similar case. Are there any X-Frame-Options set on your app? Also, are there any errors in your web-inspector ?

Upvotes: 1

Related Questions