Embed krpano and validate a cross domain request!

  • Hi everyone!

    I'm developing a website where is stored my swfkrpano.js the krpano.swf and my krpano.xml.php, and my clients (in other sites) loads my panoramas through a cross-domain request of those files.

    My main XML file (krpano.xml.php) is a PHP, and... for dinamyc and security reasons this file needs to somehow evaluate what domain are doing the request of my krpano.xml.php? so then, it will decide if the domain is a valid domain and then generate some dinamyc XML response

    My question is.. how to know with PHP from where domain comes the request?


    Thanks all!

    Edited once, last by Mayatec (April 26, 2013 at 7:48 AM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!