x

Stumped on iframe coding

Stumped on this particular iframe situation.  Both source and site are https and trying to get the page on https://www.maxpreps.com/high-schools/san-marcos-royals-(santa-barbara,ca)/girls-lacrosse/schedule.h... to show using this code.

<iframe src="https://www.maxpreps.com/high-schools/san-marcos-royals-(santa-barbara,ca)/girls-lacrosse/schedule.h..." style="border:1px #000000 solid;" scrolling="auto" align="center" height="1000px" width="900px"></iframe>

Have read through a lot of similar issues and tried those solutions to no avail.  Have even turned off https on my weebly site https://smglax.weebly.com/schedule.html and re-published to no avail.  Does anyone see what I'm missing?  Thank you!

1,965 Views
Message 1 of 3
Report
1 Best Answer
Square

Best Answer

I'm seeing this error when I check the page:

Refused to display 'https://www.maxpreps.com/high-schools/san-marcos-royals-(santa-barbara,ca)/girls-lacrosse/schedule.htm' in a frame because it set 'X-Frame-Options' to 'DENY'.

The server you're trying to pull the page from is sending header information which will prevent any page from being loaded from anywhere except the originating domain. In order for it to work you'd need to get the administrator of that site to make some server changes to support this.

View Best Answer >

1,959 Views
Message 4 of 3
Report
2 REPLIES 2
Square

Best Answer

I'm seeing this error when I check the page:

Refused to display 'https://www.maxpreps.com/high-schools/san-marcos-royals-(santa-barbara,ca)/girls-lacrosse/schedule.htm' in a frame because it set 'X-Frame-Options' to 'DENY'.

The server you're trying to pull the page from is sending header information which will prevent any page from being loaded from anywhere except the originating domain. In order for it to work you'd need to get the administrator of that site to make some server changes to support this.

1,960 Views
Message 4 of 3
Report

Thanks Adam. I asked them to change it to accepting the display in frames and they said no so I guess I'm re-creating content at some point close to the spring. 

1,931 Views
Message 4 of 3
Report