Skip to content

Commit

Permalink
twittermeow: add default referer and origin
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 2, 2024
1 parent 372492d commit 46e0f94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/twittermeow/headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"net/http"

"go.mau.fi/mautrix-twitter/pkg/twittermeow/cookies"
"go.mau.fi/mautrix-twitter/pkg/twittermeow/data/endpoints"
)

const BrowserName = "Chrome"
Expand All @@ -29,6 +30,8 @@ var BaseHeaders = http.Header{
"sec-ch-ua": []string{SecCHUserAgent},
"sec-ch-ua-platform": []string{SecCHPlatform},
"sec-ch-ua-mobile": []string{SecCHMobile},
"referer": []string{endpoints.BASE_URL + "/"},
"origin": []string{endpoints.BASE_URL},
//"sec-ch-prefers-color-scheme": []string{SecCHPrefersColorScheme},
//"sec-ch-ua-full-version-list": []string{SecCHFullVersionList},
//"sec-ch-ua-model": []string{SecCHModel},
Expand Down

0 comments on commit 46e0f94

Please sign in to comment.