google-translate-api-browser icon indicating copy to clipboard operation
google-translate-api-browser copied to clipboard

403 error in Electron app

Open vedmant opened this issue 1 year ago • 1 comments

I'm using this package on my electron app with disabled web security to prevent cors error. But having 403 error, I see that google-translate-token is mentioned, but is not used. Any thoughts about this? Thanks!

vedmant avatar Dec 24 '23 10:12 vedmant

How do you use the library? As far as I understand, you use the web version. If you use it through the CORS server, you must authorize yourself. See the web example - you should open the link http://cors-anywhere.herokuapp.com/corsdemo and click on the button: Screenshot 2023-12-27 at 15 36 35 otherwise, you would get a 403 error

However, for the Electron app it should be possible to use node version of the app (probably)

cjvnjde avatar Dec 27 '23 13:12 cjvnjde