Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronvg committed Dec 12, 2024
1 parent d72586f commit e38f259
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions typescript/vscode-ext/packages/vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export function activate(context: vscode.ExtensionContext) {
changeOrigin: true,
pathRewrite: (path, req) => {
console.log('reqmethod', req.method)

// Remove the path in the case of images. Since we request things differently for image GET requests, where we add the url to localhost:4500/actual-url.png
// to prevent caching issues with Rust reqwest.
// But for normal completion POST requests, we always call localhost:4500.
Expand Down Expand Up @@ -249,11 +249,9 @@ export function activate(context: vscode.ExtensionContext) {
// proxyReq.setHeader('origin', targetUrl.origin)
// proxyReq.setHeader('host', targetUrl.host)
// }

},
proxyRes: (proxyRes, req, res) => {
proxyRes.headers['Access-Control-Allow-Origin'] = '*'

},
error: (error) => {
console.error('proxy error:', error)
Expand Down

0 comments on commit e38f259

Please sign in to comment.