Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

Commit fdbeff2

Browse files
committed
Fix 403 issue on submitting.
Issue was with user agent differences (between cookies). Clear user agent by removing the default device configurations.
1 parent ba9bc29 commit fdbeff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/browser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
func NewBrowser(headless bool, userDataDir, bin, cacheDir string) (*rod.Browser, error) {
1414
// Launch browser.
1515
launchBrowser := func(controlURL string) (*rod.Browser, error) {
16-
b := rod.New().ControlURL(controlURL)
16+
b := rod.New().ControlURL(controlURL).NoDefaultDevice()
1717
if err := b.Connect(); err != nil {
1818
return nil, err
1919
}

0 commit comments

Comments
 (0)