开发者

Fancybox not loading certain sites given in href

开发者 https://www.devze.com 2023-04-05 11:33 出处:网络
I want to load certain website in fancybox. This is my code: $.fancybox({ \'width\': \'85%\', \'开发者_开发技巧height\': \'85%\',

I want to load certain website in fancybox. This is my code:

  $.fancybox({
                'width': '85%',
                '开发者_开发技巧height': '85%',
                'type': 'iframe',
                'href': 'https://twitter.com',
                'transitionIn': 'elastic',
                'transitionOut': 'elastic'
             });

As you can see I am loading twitter.com in href. The request is sent when I saw it in Fiddler but the page doesn't render. Any idea what can be wrong?

Note: I am already using latest version of fancybox i.e 1.3.4.


Twitter.com uses frame breakers because of clickjacking attempts in the past. That is probably the reason why it is not working.

If you are trying to display your feed, use their api.

0

精彩评论

暂无评论...
验证码 换一张
取 消