mbi / django-rosetta

Rosetta is a Django application that eases the translation process of your Django projects
MIT License
1.07k stars 195 forks source link

DeepL suggestions not working #271

Closed rafaelromon closed 1 year ago

rafaelromon commented 2 years ago

Enviroment:

DeepL suggestions are no longer working, ajax response returns HTTP 403 Forbidden. I did some quick look through the documentation for the DeepL API and it seems sending the auth key in the post is no longer supported, it needs to be sent as a header see documentation

error

biermeester commented 1 year ago

This can be resolved by adding the following header to the DeepL section in rosetta.js:

"Authorization": "DeepL-Auth-Key {{rosetta_settings.DEEPL_AUTH_KEY}}"

But then you start running into CORS issues, it seems. Looking into that at the moment.