简体   繁体   English

Facebook应用程序何时使用Secure Canvas?

[英]When facebook application use Secure Canvas?

I have a Facebook application, and my host have selfsigned certificate. 我有一个Facebook应用程序,并且我的房东有自签名证书。 Usually thats not a problem, because my browsers used Canvas URL (with http), and everything worked fine. 通常那不是问题,因为我的浏览器使用的是Canvas URL(带有http),并且一切正常。 But some other browsers requires Secure Canvas URL (with https), and throw an exception if Secure Canvas URL is empty, or if my host has incorrect certificate. 但是其他一些浏览器则需要Secure Canvas URL(带有https),如果Secure Canvas URL为空,或者我的主机证书不正确,则会引发异常。
So how the browser/Facebook decides when to use Canvas URL, and when Secure Canvas URL? 那么浏览器/ Facebook如何决定何时使用Canvas URL,以及何时使用Secure Canvas URL? Can I make them use Canvas URL only, without https? 是否可以让他们仅使用Canvas URL,而不使用https?

If I'm correct applications have a setting like "October 2011" or something (I'll try to verify that for you). 如果我是正确的,则应用程序的设置应为“ 2011年10月”之类的(我会尽力为您验证)。 Maybe if you disable that one you can use http. 也许如果您禁用了那个,您可以使用http。 The idea behind this implementation was to put every new applications on https. 此实现背后的想法是将所有新应用程序放在https上。

Now I can understand for development purposes you want to try without https. 现在,我可以理解,出于开发目的,您想尝试不使用https。 Not every browser acts the same way with self-signed certificates (Chrome <-> FF). 并非每种浏览器对自签名证书(Chrome <-> FF)的行为都相同。

In a business environment I strongly suggest you have a valid certificate. 在业务环境中,我强烈建议您拥有有效的证书。

EDIT : possible duplicate of your question http://facebook.stackoverflow.com/questions/7308348/facebook-canvas-apps-https-and-http 编辑:您的问题的可能重复http://facebook.stackoverflow.com/questions/7308348/facebook-canvas-apps-https-and-http

EDIT 2 : Apps on Facebook Authentication and Security Migration (HTTPS) 编辑2:Facebook身份验证和安全迁移(HTTPS)上的应用

All Canvas and Page tab apps must convert to process signed_request (fb_sig will be removed) and obtain an SSL certificate for use in "Secure Canvas URL" and "Secure Page Tab URL" (unless you are in Sandbox mode). 所有“画布”和“页面”选项卡应用程序都必须转换为进程signed_request(fb_sig将被删除),并获取SSL证书,以在“安全画布URL”和“安全页面选项卡URL”中使用(除非您处于沙盒模式)。 You must provide an SSL certificate in the Dev App settings to avoid having your app disabled. 您必须在“开发应用程序”设置中提供SSL证书,以避免禁用您的应用程序。

So ... are you in sandbox mode? 那么...您是否处于沙盒模式?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM