Skip to content

Commit

Permalink
403 Forbidden fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Allyans3 committed Feb 12, 2025
1 parent c2d6c44 commit a1b72d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Traits/SteamAuthMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit a1b72d7

Please sign in to comment.