比特币的 URI 方案

中本聪SN-0323
其他参与者原话lachesis原帖 ↗

我想你误解了这个问题。我的浏览器永远可以访问 127.0.0.1(除非奇怪的 IE 设置或病毒作祟)。无论在地址栏输入还是点击链接,都能正常工作。但 Javascript 无法完成跨域(或同域不同端口)的 POST 请求。

I think you're misunderstanding the issue. My browser will always be able to go to 127.0.0.1 (barring some strange IE settings or a virus). If I type the address into the URL bar or click a link, it will work fine. However, it isn't possible to use Javascript to complete POST requests between domains (or ports on the same domain).

中本聪回应

我也是这么想的。

That's what I thought too.

其他参与者原话sirius-m原帖 ↗

对,我是想说跨域的 javascript 调用是被禁止的,所以不能从不位于 127.0.0.1 的 javascript 去调用 127.0.0.1。想想看,要是浏览器允许恶意跨域 javascript 修改别人的 Facebook 页面之类的内容,那可就有意思了。

Yeah, I meant to say that cross-domain javascript calls are forbidden, so you can't call 127.0.0.1 from a javascript that doesn't reside in 127.0.0.1. Come to think of it, it would be quite funny if browsers allowed malicious cross-domain javascript to change people's Facebook pages etc.

中本聪回应

现在有消息说,javascript 其实可以跨域对 127.0.0.1 发 POST 请求。不是对别的域,偏偏对这个就行。太好了……

Now I'm hearing a report that it IS possible for javascript to do a cross-domain POST request to 127.0.0.1. Not other domains, but just specifically to that one. Great...

如果确实这样,那就不要在用来浏览网页的机器上使用 -server 开关或 bitcoind。

If this is the case, then do not use the -server switch or bitcoind on a system where you do web browsing.

我这就着手加密码字段。

I'll get started on adding the password field.

上下文
译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:28452d995760。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

URI-scheme for bitcoin

Bitcointalk · 原始链接 ↗ 记录编号 SN-0323

阅读字号

选择适合你的字号,之后阅读会继续使用。