Remove referer from XHR

このコミットが含まれているのは:
Omar Roth 2019-05-08 09:15:27 -05:00
コミット 37d88d5ff7
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: B8254FB7EC3D37F2
1個のファイルの変更2行の追加4行の削除

ファイルの表示

@ -14,8 +14,7 @@ function subscribe(timeouts = 0) {
}
var url = '/subscription_ajax?action_create_subscription_to_channel=1&redirect=false' +
'&c=' + subscribe_data.ucid +
'&referer=' + location.pathname + location.search;
'&c=' + subscribe_data.ucid;
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
xhr.timeout = 20000;
@ -49,8 +48,7 @@ function unsubscribe(timeouts = 0) {
}
var url = '/subscription_ajax?action_remove_subscriptions=1&redirect=false' +
'&c=' + subscribe_data.ucid +
'&referer=' + location.pathname + location.search;
'&c=' + subscribe_data.ucid;
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
xhr.timeout = 20000;