Hi,
This may be a dumb question (and I’m really new to code’) but how would I go about using an iFrame to display my live map on an external page?
I tried using this:
\<iframe id="mymap" name="mymap" src="http://crew.panamvirtual.org/index.php/acars" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="650px" scrolling="no"\>\</iframe\>
But when I tried to load the page, the spot where it was supposed to be was just blank. Any suggestions?
What is the page that you have added the iframe?
8 hours ago, servetas said:
What is the page that you have added the iframe?
panamvirtual.org/live-map.html
I checked the console log and I can see that error:
Load denied by X-Frame-Options: http://fsxccvirtual.com/index.php/acars does not permit cross-origin framing.
Check this for more information: https://stackoverflow.com/questions/38699221/load-denied-by-x-frame-options-does-not-permit-framing
I believe that it has to do with your web hosting provider’s settings.
Suggest going to the Admin CP, and copy the text/script into a created page via “Add Page” in the admin panel, from the acars.php file. Name the page anything you’d like, (example; Myacars or SiteAcars ). this creates a formatted page in htm or html depending on how you have config files setup from the core. From there you can embed the created page you have created in the Main layout.php file or the frontpage_main.php file with the <iframe> script. As mentioned above, you Can’t cross reference directly the framing from the actual script. This is the ONLY way to do so. And remember one Major important thing in messing with any Main scripts. ALWAYS make a backup COPY ! Hope this helps you.
Jim
The issue is the main website is not created by phpvms. I have a subdomain for the crew center running phpvms. I am trying to iframe the subdomain onto the main site. I contacted my hosting service and they asked me to contact a phpvms web developer to tell them what the server-side requirements are. Any ideas?
Update: I was able to fix the problem myself. The main index.php file on my crew site had X-Frame options set to ‘sameorigin’ I changed that to ‘allow from http://…’ and it works now!