Allow Calaméo to access your resources - Calaméo Knowledge Base
Not a Calaméo member yet?
Sign up now! It's FREE!
Get the latest news on Calaméo
Follow us on Facebook
Get Calaméo updates in real-time
Follow us on Twitter

Allow Calaméo to access your resources

From Calaméo Knowledge Base

For security reasons, Calaméo cannot access files on other websites. In order to load your CSML file and your skin elements, you have to grant Calaméo access to it.

The Access-Control-Allow-Origin header

You need to enable CORS for your custom skin XML and graphic resources files.

For more information on how to enable CORS, simply follow the steps detailed at http://enable-cors.org/

The crossdomain.xml file

To authorize Calaméo to load elements on your website, you must place a crossdomain.xml file containing the following text at the root of your domain:

<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    <allow-access-from domain="*.calameo.com" secure="false" />
</cross-domain-policy>

Ex. : If your website is http://www.example.com, place the crossdomain file here http://www.example.com/crossdomain.xml

You can also download the crossdomain.xml file to be placed on your server by clicking here (right click, save as "crossdomain.xml").