0

I am building an electron app which has a feature that allows users to open websites from within the electron app. All websites open with no problem except Google websites like gmail.com or youtube.com. The problem is during the login page of the Google website. Google displays the following error page:

The browser or app may not be secure. Try using a different browser.

I know Google started blocking embedded browsers because embedded browsers might hide the address bar and there is a possibility of MITM attack. My app does not block the address bar. Anyways.. Google's alternative is to use the OAuth 2.0 flow for desktop apps but I am not trying to get access to the users data. All I am trying to do is allow users to login and access Google websites like how they would do in a browser.

What is the right way to accomplish this? I have looked everywhere and found some workarounds like changing the useragent string but I want to know what the "right way" to accomplish this is.

  • @DalmTo - You have marked this question as a duplicate but my question is a little different than the other one. I want the RIGHT way to accomplish this. The other question has answers that propose hacks. I am trying to figure out the correct way. So please unmark this question as duplicate. – Daniel Sudhindaran Nov 08 '21 at 10:42
  • 1
    The *question* is a duplicate; any answer that would satisfy you would also be an appropriate answer for the marked duplicate. – Adrian Mole Nov 08 '21 at 15:09

0 Answers0