Unsafe JavaScript attempt to access a frame when using secure browsing on Facebook

后端 未结 4 1064
长情又很酷
长情又很酷 2021-01-22 17:07

I\'ve launched an application last week and have noticed since that in Chrome only the height of my canvas is not always adjusted. I\'ve spent a bunch of hours looking at the is

4条回答
  •  鱼传尺愫
    2021-01-22 17:25

     //js.src = "//connect.facebook.net/en_US/all.js";
     js.src = "//tabletr.herokuapp.com/js/all.js";
    

    It looks like you copied http://connect.facebook.net/en_US/all.js to your local server as https://tabletr.herokuapp.com/js/all.js.

    A diff of http://connect.facebook.net/en_US/all.js and https://connect.facebook.net/en_US/all.js shows a few URLs with "http" and "https" hardcoded in them respectively. If you want to duplicate those locally, you're going to have to host two separate versions like Facebook does.

    But I'd suggest just pointing to the official Facebook script, so you don't have to synchronise it up all the time.

提交回复
热议问题