Iframe with my domain as source does not load. How to resolve this?

Asked

Viewed 1,503 times

2

I put the iframe <iframe src="http://axitech.com.br"></iframe> in an html file within the domain itself and then put inside another domain. The result is that my url does not click on any of the domains I tested.

In passing, the Google url also does not load ( <iframe src="http://google.com"></iframe> ). The system in the url axitech is Wordpress.

Does anyone have any idea?

URL test works.

URL test doesn’t work.

  • The http://axitech.com.br URL has no content, even when called directly at the browser address. Actually iframe loaded without errors with this address. Already Google gives the error: Refused to display 'https://www.google.com/?gws_rd=ssl' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

  • I put the right url in the item DOES NOT WORK.

  • Now yes, same google error. Refused to display 'http://z12.axitech.com.br/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

1 answer

2


It will not be possible to display the page you have since the server on which it is hosted is sending the following header:

X-Frame-Options: SAMEORIGIN

Meanwhile header is being sent, it will not be possible to use it in an iframe. If you have contact with who manages the site, you can ask them to add:

ALLOW-FROM uri

Where Uri would be your page that would be allowed to use iframe.

Read more about X-Frame-Options on: https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options

Browser other questions tagged

You are not signed in. Login or sign up in order to post.