to-google-translate
to-google-translate copied to clipboard
Choosing "To Google Translate" in context menu results in 403 forbidden.
This is what I get when I choose to translate then auto/en:
403. That’s an error.
We're sorry, but you do not have access to this page. That’s all we know.
Any idea how I could fix this?
Thanks for your time!
Same here, smells a bit like Google blocked something?
ditto
Same here.
Same here.
I think the issue comes from Sec-Fetch-Dest: iframe
header, added automatically by the browser which trigger 403.
https://blog.mozilla.org/security/2021/07/12/firefox-90-supports-fetch-metadata-request-headers/
You can test :
Output 200: curl -v -k -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8" -H "Accept-Language: en-AU" -H "Connection: keep-alive" -H "DNT: 1" -H "Upgrade-Insecure-Requests: 1" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" -H "Sec-Fetch-Mode: navigate" -H "Sec-Fetch-Site: none" -H "Sec-Fetch-User: ?1" -H "Sec-Fetch-Dest: document" -o out1.html "https://translate.google.com/?sl=auto&tl=en&text=bonjour"
Output 403: curl -v -k -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8" -H "Accept-Language: en-AU" -H "Connection: keep-alive" -H "DNT: 1" -H "Upgrade-Insecure-Requests: 1" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" -H "Sec-Fetch-Mode: navigate" -H "Sec-Fetch-Site: none" -H "Sec-Fetch-User: ?1" -H "Sec-Fetch-Dest: iframe" -o out1.html "https://translate.google.com/?sl=auto&tl=en&text=bonjour"
Solution: go to this add-on settings and tick "Open in... (o)New Tab".
Thank you Juan again, nice add-on !!
Same here.
I think the issue comes from
Sec-Fetch-Dest: iframe
header, added automatically by the browser which trigger 403.https://blog.mozilla.org/security/2021/07/12/firefox-90-supports-fetch-metadata-request-headers/
You can test :
Output 200:
curl -v -k -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8" -H "Accept-Language: en-AU" -H "Connection: keep-alive" -H "DNT: 1" -H "Upgrade-Insecure-Requests: 1" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" -H "Sec-Fetch-Mode: navigate" -H "Sec-Fetch-Site: none" -H "Sec-Fetch-User: ?1" -H "Sec-Fetch-Dest: document" -o out1.html "https://translate.google.com/?sl=auto&tl=en&text=bonjour"
Output 403:
curl -v -k -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8" -H "Accept-Language: en-AU" -H "Connection: keep-alive" -H "DNT: 1" -H "Upgrade-Insecure-Requests: 1" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" -H "Sec-Fetch-Mode: navigate" -H "Sec-Fetch-Site: none" -H "Sec-Fetch-User: ?1" -H "Sec-Fetch-Dest: iframe" -o out1.html "https://translate.google.com/?sl=auto&tl=en&text=bonjour"
Solution: go to this add-on settings and tick "Open in... (o)New Tab".
Thank you Juan again, nice add-on !!
This is workaround. The solution will be to fix popup. Wait for it <3