From a1b72d7988d32eccbb2cb776dd1e525e5fdaa595 Mon Sep 17 00:00:00 2001 From: allyans3 Date: Wed, 12 Feb 2025 08:28:35 -0500 Subject: [PATCH] 403 Forbidden fix --- src/Traits/SteamAuthMethods.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Traits/SteamAuthMethods.php b/src/Traits/SteamAuthMethods.php index ddb7563..2cc8cfa 100644 --- a/src/Traits/SteamAuthMethods.php +++ b/src/Traits/SteamAuthMethods.php @@ -264,6 +264,11 @@ public function finalizeLogin($refreshToken, $sessionId): array $curl->setConnectTimeout(30); $curl->setTimeout(60); + $curl->setHeaders([ + 'Origin' => 'https://steamcommunity.com', + 'Referer' => 'https://steamcommunity.com/' + ]); + if ($this->proxy) { if (array_key_exists('domain_name', $this->proxy)) $curl->setProxy($this->proxy['domain_name']);