Translator: request without proxy redirection

31 views
Skip to first unread message

Shiyu Wang

unread,
Aug 9, 2026, 9:49:53 AM (10 days ago) Aug 9
to zotero-dev
I am performing live test on a page on a proxy URL with a distinct domain name.

I do requestDocument() on the non-proxy, original domain of the web page, but my request always goes to the proxied domain. I found out by the code and viewing debug log in Zotero Connector extension:

const testDoc = await requestDocument(<non-proxy URL>, noProxyOptions);
Zotero.debug(`returned URL ${JSON.parse(JSON.stringify(testDoc)).location}`);

  • I have the Enable proxy redirection option disabled in the Zotero Connector browser extension.
  • When I visit the non-proxy URL on a new tab, I get the non-proxy response.
    • When I translate this page, it does not redirect my request to a proxy. 

I want to know if there is a way I can force the request to not use the proxy of the current page to be translated. Can I pass some header option to requestDocument() to force the correct URL?
Reply all
Reply to author
Forward
0 new messages