cjvnjde / google-translate-api-browser

A free and unlimited API for Google Translate
https://www.npmjs.com/package/google-translate-api-browser
MIT License
213 stars 31 forks source link

Browser mode 403 Forbidden #42

Closed Richie-Z closed 8 months ago

Richie-Z commented 8 months ago

The node version is works great, but when in the browser mode is always getting 403 forbidden. The cors-anywhere that I used is in my local then i forward it using ngrok. Here the response that i received

Screenshot 2024-03-19 at 13 44 16
cjvnjde commented 8 months ago

@Richie-Z Have you tried to add the header described here? https://github.com/cjvnjde/google-translate-api-browser/issues/37#issue-2141834298