[twitch] Fix authentication (refs #27743)
authorSergey M․ <dstftw@gmail.com>
Sat, 9 Jan 2021 23:23:08 +0000 (06:23 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 9 Jan 2021 23:23:08 +0000 (06:23 +0700)
youtube_dl/extractor/twitch.py

index db264e8a15bf12e6b5c1f409f339db3c07f176c7..fa19e9a7a27b591aabb37dc08f8cf6063e7a671c 100644 (file)
@@ -76,7 +76,7 @@ class TwitchBaseIE(InfoExtractor):
 
             headers = {
                 'Referer': page_url,
-                'Origin': page_url,
+                'Origin': 'https://www.twitch.tv',
                 'Content-Type': 'text/plain;charset=UTF-8',
             }