Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified how the user agent is set when sending headers. There were two issues that I was able to identify. First, the Google sign-in page sends requests to the youtube.com domain sometimes, so the existing replacement effect was not always firing. Adding a url entry for this domain fixes this problem. Second, Google sometimes doesn't like the hard-coded user agent this project was previously providing. I have no idea why -- this Electron/user agent/Google problem has been ongoing for years. I've solved this problem this time by instead taking the user agent Electron would have passed by itself and stripping out only the Electron-specific component. I don't know how long this fix will last, since Google seems intent on being opaque about how they determine if a browser is secure or not. Fingers crossed. Co-authored-by: Doc Islands <[email protected]>
- Loading branch information