Janrain (RPX) 与文件:协议
如果当前网页是使用 file:
协议从本地主机打开的,Janrain 不适合我。我在弹出框架中收到以下错误:
未找到该网址的网页:file://X.rpxnow.com/openid/embed?token_url=Y
如何避免这种情况?我想使用 PhoneGap 创建一个移动应用程序,它看起来像使用 file:
协议。
提前致谢, 安德拉斯
Janrain is not working for me, if the current webpage is opened from localhost with file:
protocol. I got the following error in the popup frame:
No webpage was found for the web address: file://X.rpxnow.com/openid/embed?token_url=Y
How can I avoid this? I would like to create a mobile application with PhoneGap, and it looks like it use file:
protocol.
Thanks in advance,
Andras
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用
https
方案(或者可能是http
方案)。file
方案将不起作用。file
方案从客户端的文件系统中提取文件。您需要对远程 rpxnow.com 服务器进行 API 调用,因此file
将不起作用。您可能需要覆盖代码中的方案。如果您不确定如何做到这一点,请发布您的代码,我或其他人无疑会尝试解释如何做到这一点。
You need to use the
https
scheme (or perhaps thehttp
scheme). Thefile
scheme will not work. Thefile
scheme pulls files from the client's filesystem. You need to make the API call against the remote rpxnow.com server, sofile
will not work.You will probably need to override the scheme in your code. If you're not sure how to do that, post your code and I or someone else will no doubt try to explain how to do it.