mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-30 02:32:56 +05:30
Remove referer from XHR
This commit is contained in:
parent
4616f889fd
commit
37d88d5ff7
@ -14,8 +14,7 @@ function subscribe(timeouts = 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var url = '/subscription_ajax?action_create_subscription_to_channel=1&redirect=false' +
|
var url = '/subscription_ajax?action_create_subscription_to_channel=1&redirect=false' +
|
||||||
'&c=' + subscribe_data.ucid +
|
'&c=' + subscribe_data.ucid;
|
||||||
'&referer=' + location.pathname + location.search;
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.responseType = 'json';
|
xhr.responseType = 'json';
|
||||||
xhr.timeout = 20000;
|
xhr.timeout = 20000;
|
||||||
@ -49,8 +48,7 @@ function unsubscribe(timeouts = 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var url = '/subscription_ajax?action_remove_subscriptions=1&redirect=false' +
|
var url = '/subscription_ajax?action_remove_subscriptions=1&redirect=false' +
|
||||||
'&c=' + subscribe_data.ucid +
|
'&c=' + subscribe_data.ucid;
|
||||||
'&referer=' + location.pathname + location.search;
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.responseType = 'json';
|
xhr.responseType = 'json';
|
||||||
xhr.timeout = 20000;
|
xhr.timeout = 20000;
|
||||||
|
Loading…
Reference in New Issue
Block a user