Page 1 of 1

Loading external panoramas

Posted: 21 Sep 2018, 06:24
by GeoPal
Hello,
Though Karl is preparing an amazing X3 pano plugin, for those storing panos on a server other than the one the website is, they might have problems with loading the panorama into iframe or popup. After a lot of fiddling, I came to a solution- writing to .htaccess this code:
Code
Header set Access-Control-Allow-Origin "*"
Header unset X-Frame-Options
Header always set X-Frame-Options "ALLOW-FROM http://yoursite.com/"
I load krpano generated flat panorama from remote hosting in modal popup window and looks like this:
http://panomagic.eu/gigapixel/Brasov/

Hope this helps someone :)
Best, G