Not able to use cloudfront URL with flexpaper

201 views Asked by At

I am using flexpaper classic trial version that accepts the swf files to display documents in my rails web application.

I have my content available on s3 within a private distibution, that can be accessible only using the cloudfront signed urls. But when i provide that url to flexplayer, for example :

http://d2qpwcrmsdq67g.cloudfront.net/172/ebooks/1357d6f7c32e68f27caf63b84085bd22.swf?Expires=1416463422&Signature=signature&Key-Pair-Id=key-pair-id

$('#documentViewer').FlexPaperViewer(
        { config : {

            SWFFile : "http://d2qpwcrmsdq67g.cloudfront.net/172/ebooks/1357d6f7c32e68f27caf63b84085bd22.swf?Expires=1416463422&Signature=signature&Key-Pair-Id=key-pair-id",

            Scale : 0.6,
            ZoomTransition : 'easeOut',
            ZoomTime : 0.5,
            ZoomInterval : 0.1,
            FitPageOnLoad : false,
            FitWidthOnLoad : false,
            PrintEnabled : false,
            FullScreenAsMaxWindow : false,
            ProgressiveLoading : true,
            MinZoomSize : 0.2,
            MaxZoomSize : 5,
            SearchMatchAll : false,
            RenderingOrder : 'flash',
            ViewModeToolsVisible : false,
            ZoomToolsVisible : false,
            NavToolsVisible : false,
            CursorToolsVisible : false,
            SearchToolsVisible : false,
            WMode : 'window',
            localeChain: 'en_US'
        }}
);

it search for the crossdomain.xml which can't be found as cloudfront uses a default crossdomain.xml that can't be overriden. Therefore i get the following error on my browser console.

Failed to load resource: the server responded with a status of 403 (Forbidden) http://d2qpwcrmsdq67g.cloudfront.net/crossdomain.xml

Is there any way i can use cloudfront url with flexpaper.

Any help will be appreciated.

0

There are 0 answers