macor161 / atom-package-sync

Synchronize your atom packages and settings easily
MIT License
22 stars 5 forks source link

Google not allowed to login via CEF insecure #19

Closed Orlandoech closed 2 years ago

Orlandoech commented 4 years ago

Adding lines to .atom\packages\atom-package-sync\lib\quantal-api.js

'disable-web-security': true, 'allowRunningInsecureContent': true 'allow-Running-Insecure-Content': true

DO NOT resolve the issue. Please advise asap.

ekazda commented 4 years ago

Any word on this issue? Is this plugin no longer being supported, because this bug is a critical error.

robert-cronin commented 4 years ago

same issue

Ethanwolfie commented 4 years ago

I know nothing about javascript and electron. I followed what the developer suggested and changed

win.loadURL(`${this._apiUrl}/authentication/app`)

in .atom\packages\atom-package-sync\lib\quantal-api.js to

win.loadURL(`${this._apiUrl}/authentication/app`, {userAgent: 'Chrome'})

, but it didn't work. Then I looked up userAgent in here and changed the line to

win.loadURL(`${this._apiUrl}/authentication/app`, {userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36'})

and it worked. The userAgent may differ on your computer. I hope this helps.

ghost commented 4 years ago

yeah, the same problem, google suggest developers use another way, and they have a tutorial about it./

gokay05 commented 4 years ago

I know nothing about javascript and electron. I followed what the developer suggested and changed

win.loadURL(`${this._apiUrl}/authentication/app`)

in .atom\packages\atom-package-sync\lib\quantal-api.js to

win.loadURL(`${this._apiUrl}/authentication/app`, {userAgent: 'Chrome'})

, but it didn't work. Then I looked up userAgent in here and changed the line to

win.loadURL(`${this._apiUrl}/authentication/app`, {userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36'})

and it worked. The userAgent may differ on your computer. I hope this helps.

This worked for me too. You should grab your browser's user agent from https://www.whatismybrowser.com/guides/the-latest-user-agent and add it to the line Ethan updated.

macor161 commented 2 years ago

Sorry, due to the increase in popularity of alternative open source IDEs such as VSCode, atom-package-sync has been deprecated.