-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
apiIssues related to APIIssues related to APIfeature requestNew feature or improvementNew feature or improvement
Description
Describe the feature and the current behavior/state.
The node-fetch module used to do requests doesn't support environment proxy configurations. Changing the agent used would allow, to properly use extensions behind a company firewall.
const agent = new https.Agent({ rejectUnauthorized: !prefs.unsafeHTTPS });
to something along the lines of
import { getProxyHttpAgent } from "proxy-http-agent";
...
const proxyUrl = process.env.HTTP_PROXY || process.env.http_proxy || `http://localhost:7070`;
const agent: http.Agent = getProxyHttpAgent({
proxy: proxyUrl,
rejectUnauthorized: !prefs.unsafeHTTPS,
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
apiIssues related to APIIssues related to APIfeature requestNew feature or improvementNew feature or improvement