From cb108cb99023bb8561f338fe1cf31dae2d340660 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 29 Jan 2020 14:21:12 -0600 Subject: [PATCH] use webpass in torstats --- static-data/www/shared/main/torstats.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static-data/www/shared/main/torstats.js b/static-data/www/shared/main/torstats.js index 91f00162..af51f840 100644 --- a/static-data/www/shared/main/torstats.js +++ b/static-data/www/shared/main/torstats.js @@ -1,4 +1,8 @@ -var torSource = new EventSourcePolyfill("/torcircuits") +var torSource = new EventSourcePolyfill('/torcircuits', { + headers: { + "token": webpass + } + }) var displays = document.getElementsByClassName('torInfo') for (x = 0; x < displays.length; x++){