我希望在使用 WinJS 制作的 Windows 8 应用程序中使用 Firebase。这是我尝试写入 Firebase 根目录的方式:
var dataRef = new Firebase("https://<firbaseName>.firebaseio.com");
dataRef.set("I am now writing data into Firebase!");
但是,这在 JavaScript 控制台中给了我以下错误:
Can’t load <https://<firebaseName>.firebaseio.com/.lp?start=t&ser=66595697&cb=2&v=5>. An app can’t load remote web content in the local context.
我尝试将 https://[firebaseName].firebaseio.com/* 添加到我的应用清单中的内容 URI 中,但这似乎不是解决方案。有谁知道是否可以让 Firebase 在 Windows 8 应用程序中运行?