CoreLibs icon indicating copy to clipboard operation
CoreLibs copied to clipboard

Userscript XHR errors

Open GrandDuke1106 opened this issue 4 months ago • 0 comments

Please answer the following questions for yourself before submitting a question.

  • [X] I am running the latest version
  • [X] I checked the knowledge base and found no answer
  • [X] I checked to make sure that this issue has not already been filed

Ask a question

I use adguard for Android as a script loader. I added a script for web page translation and when the script tries to call Microsoft Translate (visit edge.microsoft.com), it gets a 500 error.

Of course I get this error with other scripts as well

I want to how to set it up to avoid this error

This is the script https://download.immersivetranslate.com/immersive-translate.user.js

This is the request header.

GET /adguard-ajax-api/api?type=gm-xml-http-request&unique_name=Immersive%20Translate%20-%20Translate%20Website%20%26%20PDF&url=https%3A%2F%2Fedge.microsoft.com%2Ftranslate%2Fauth&data=&headers=accept:*%2F*,accept-language:zh-TW%2Czh%3Bq%3D0.9%2Cja%3Bq%3D0.8%2Czh-CN%3Bq%3D0.7%2Cen-US%3Bq%3D0.6%2Cen%3Bq%3D0.5,cache-control:no-cache,pragma:no-cache,referrer-policy:strict-origin-when-cross-origin&method=GET&overridemimetype=&user=&password=&sn=2eb5fe7d280a753162c7782419529af5387f268194be1f11c998ede95499d7dc&ust=32d2e0ea-19f4-4cc8-a2cf-13beb25e1ea1 HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Connection: keep-alive
Host: local.adguard.org
Origin: https://sdf.org
Referer: https://sdf.org/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
User-Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Mobile Safari/537.36
sec-ch-ua: "Not-A.Brand";v="99", "Chromium";v="124"
sec-ch-ua-mobile: ?1
sec-ch-ua-platform: "Android"

GrandDuke1106 avatar Apr 08 '24 03:04 GrandDuke1106