Skip to content

Commit

Permalink
Fix 403 issue on submitting.
Browse files Browse the repository at this point in the history
Issue was with user agent differences (between cookies).
Clear user agent by removing the default device configurations.
  • Loading branch information
infalmo committed Feb 21, 2021
1 parent ba9bc29 commit fdbeff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
func NewBrowser(headless bool, userDataDir, bin, cacheDir string) (*rod.Browser, error) {
// Launch browser.
launchBrowser := func(controlURL string) (*rod.Browser, error) {
b := rod.New().ControlURL(controlURL)
b := rod.New().ControlURL(controlURL).NoDefaultDevice()
if err := b.Connect(); err != nil {
return nil, err
}
Expand Down

0 comments on commit fdbeff2

Please sign in to comment.