Skip to content

Instantly share code, notes, and snippets.

@yellinben
Last active March 28, 2024 07:30
Show Gist options
  • Save yellinben/a4cc92d0b2a2164880c1a82a89cf57e1 to your computer and use it in GitHub Desktop.
Save yellinben/a4cc92d0b2a2164880c1a82a89cf57e1 to your computer and use it in GitHub Desktop.
Allow HTTP proxy in VS Code & Copilot
// Add these settings at the end of VSCode's `settings.json` file to allow HTTP inspection.
// For use with any MITM, self-signed HTTP proxy (Proxyman, Charles, Fiddler, etc).
// Last tested on VSCode 1.78.2. It's possible security settings will be hardened in future releases.
// Make sure to enable SSL-proxying of relevant hostnames to intercept complete requests/responses.
// For Copilot: `copilot-proxy.githubusercontent.com`
// These settings are obviously not secure, so disable them when not needed!
{
/* rest of your vscode settings */
"http.proxy": "http://[HOST]:[PORT]",
"http.proxyStrictSSL": false,
"http.proxySupport": "on",
"debug.javascript.resourceRequestOptions": {
"https": { "rejectUnauthorized": false }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment