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

Support for custom CORS server #8

Closed marufmax closed 2 years ago

marufmax commented 5 years ago

If we change CORS server to a different server and not pass the "x-requested-with": "XMLHttpRequest" this header it will produce this issue: https://github.com/Rob--W/cors-anywhere/issues/39

I've added a header and a prepare script. Sometimes after installation this package is not building (happen with me)

This will fix it.