Facebook应用程序使用iframe错误 [英] Facebook app using iframe error

查看:97
本文介绍了Facebook应用程序使用iframe错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我使用我的Facebook应用程序下面的代码工作之前。但最近,Chrome浏览器阻止了我的内容,并表示这是不安全的代码。任何人都可以帮助吗?

before i used the following code in my facebook app it works. But recently, the chrome browser blocked my content and said it is unsafe code. By any chance anyone can help?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<body>

<center><IFRAME SRC="http://www.XX.com/index.html" WIDTH=660 HEIGHT=700 frameborder="0">

</IFRAME>


</body>
</html>


推荐答案

你在facebook.com画布/页面标签应用)?对于那些您必须通过HTTPS加载所有内容,当用户通过HTTPS冲浪Facebook时。

Are you talking about an app within facebook.com (canvas/page tab app)? For those you have to load all of your content via HTTPS, when the user is surfing Facebook via HTTPS.

如果您的 www.XX.com 域可通过HTTPS访问,然后将iframe地址更改为 // www.XX.com/... - 这将让浏览器选择适当的协议自动。

If your www.XX.com domain is accessible via HTTPS, then just change the iframe address to //www.XX.com/… – that’ll let the browser pick the appropriate protocol automatically.

这篇关于Facebook应用程序使用iframe错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆