From efd48a8287554e5b73860bdc63018ac3a0c804e7 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Fri, 16 Sep 2022 15:03:25 +0200 Subject: [PATCH] Improve on the GQL integrity headers --- twitch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/twitch.py b/twitch.py index e94a473..215b198 100644 --- a/twitch.py +++ b/twitch.py @@ -179,6 +179,9 @@ class _AuthState: def gql_headers(self, *, integrity: bool) -> JsonType: headers = { "Authorization": f"OAuth {self.access_token}", + "Accept": "*/*", + "Origin": "https://www.twitch.tv", + "Referer": "https://www.twitch.tv/", "Client-Id": CLIENT_ID, "Client-Session-Id": self.session_id, "Client-Version": self.client_version,