【发布时间】:2017-01-05 15:26:43
【问题描述】:
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://httpbin.org', true);
xhr.send();
当从example.org 运行上面的这个简单代码时,Chrome devtools 中的请求标头会显示:
Host:httpbin.org
Origin:http://example.org
Referer:http://example.org
在 Brave 中运行相同的代码时,我得到了这个:
Host:httpbin.org
Origin:https://example.org
Referer:https://httpbin.org
我觉得引用者与主机相同是一个错误,但也许我错过了一些东西。我应该举报吗?
【问题讨论】:
标签: browser xmlhttprequest referrer