Update Twitch scriptlet

Related discussion:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1789#issuecomment-959831926

Related commit:
- 7233b5fd22
This commit is contained in:
Raymond Hill 2021-11-04 09:24:31 -04:00
parent 8b8b7da8d9
commit 3f47172473
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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';
}