Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 403: disallowed_useragent for a node.js web-site #148

Open
ereator opened this issue Oct 31, 2022 · 0 comments
Open

Error 403: disallowed_useragent for a node.js web-site #148

ereator opened this issue Oct 31, 2022 · 0 comments

Comments

@ereator
Copy link

ereator commented Oct 31, 2022

Few months ago one client reported me a problem with logging to my web-site from a mobile device (Android) using Google profile. It took me a while when I could reproduce it.

So, I have a web-site (www.uvvo.eu), which is just a web site and no a mobile application. In MacOS Venture 13.0, using web browser MS Edge v.106.0.1370.52 in Developer Tools when I reduce the size of the screen to the size of a mobile device (e.g. 375 x 667 pixels or 390 x 844) logging in with Google stops working and I get “Error 403: disallowed_useragent”. With larger resolutions logging in with Google is working. In Windows 10, with the same web browser logging in works for all resolutions. Using iPhone and MS Edge, everything works also fine.

I checked the Google OAuth documentation. And it looks like this problem is related to the WebView. However all the fixes I could find are related to the mobile Apps, and not to the web-sites.

Environment

  • Operating System: MacOS Venture 13.0
  • Node version: 18.12.0
  • passport version: 0.6.0
  • passport-google-oauth version: 2.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant