From 37d88d5ff7406421aa3c7ee7e9c0f5c4981719d6 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 8 May 2019 09:15:27 -0500 Subject: [PATCH] Remove referer from XHR --- assets/js/subscribe_widget.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/assets/js/subscribe_widget.js b/assets/js/subscribe_widget.js index 73beeb98..25c5f2a6 100644 --- a/assets/js/subscribe_widget.js +++ b/assets/js/subscribe_widget.js @@ -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;