From 3f47172473caac4e9a479525801455f35819bf63 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 4 Nov 2021 09:24:31 -0400 Subject: [PATCH] Update Twitch scriptlet Related discussion: - https://github.com/uBlockOrigin/uBlock-issues/issues/1789#issuecomment-959831926 Related commit: - https://github.com/pixeltris/TwitchAdSolutions/commit/7233b5fd22844bdf47e2f14750ff8817cea60af2 --- assets/resources/scriptlets.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index 1678abc7c..dcb375f02 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -1576,6 +1576,9 @@ init.body.includes('PlaybackAccessToken') ) { const { headers } = init; + if ( typeof headers['Authorization'] === 'string' ) { + headers['Authorization'] = ''; + } if ( typeof headers['X-Device-Id'] === 'string' ) { headers['X-Device-Id'] = 'twitch-web-wall-mason'; }