Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

swfobject does not work on https in Chrome

I am trying to embed a swf file to a page (google app engine page ) by following javascript code:

        <script type="text/javascript">
        //This example uses dynamic publishing with swfObject. Login is handled in the swf

        //Note we are passing in attribute object with a 'name' property that is same value as the 'id'. This is REQUIRED for Chrome/Mozilla browsers           
        swfobject.embedSWF("loader.swf", "flashContent", "640", "480", "10.2", null, null, null, {name:"flashContent"});            

        //REST OF THE CODE
    </script>

It works properly on HTTP, but the content does not work on HTTPS. I've googled a lot but I did not find the solution. I need to use HTTPS for Secure Canvas URL for creating facebook application. As you can see in the comments below, https work on safari but not in Chrome.

Any idea will be appreciated.

like image 394
csuo Avatar asked Feb 16 '13 23:02

csuo


1 Answers

I can see that https://radmahdi.appspot.com/facebook/userstatusweb/index.html is now working for you, once you changed the link to swfobject from HTTP to HTTPS as I suggested in my comment :)

You could do

//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js

as your link, in which case the protocol used will be relative to the page loaded. Which is probably neater.

If you are happy with the solution, please mark the question as answered.

like image 136
Mike Hogan Avatar answered Sep 22 '22 15:09

Mike Hogan