0

我正在 SproutCore 中创建一个应用程序,我想将其与 Facebook 集成。为此,我需要创建一个名为xd_receiver.htmat的文件/(请参阅http://wiki.developers.facebook.com/index.php/Cross_Domain_Communication_Channel)。但是我怎么能做到这一点(所以它可以在/xd_receiver.htm)?我正在使用 sc 服务器。

谢谢。

4

1 回答 1

2

我认为直接使用 sc-server 提供 xd_receiver.htm 文件是不可能的,但您可以在 Buildfile 中放置一个代理(请参阅https://sproutcore.pbworks上的“设置代理” .com/Todos+06-Building+with+Sinatra+and+DataMapper),并将其指向您拥有的其他一些 Web 服务器(例如 Apache)为 xd_receiver.htm 提供服务。

对于生产而言,出于性能原因,通常最好构建您的 SproutCore 应用程序(使用 sc-build),然后使用 Apache 等擅长的东西托管静态文件。然后您可以配置您的 Web 服务器以在适当的 URL 处提供 SproutCore 应用程序和 xd_receiver.htm。

于 2010-01-11T18:32:39.947 回答