yandeu / five-server-vscode

⚡ VSCode Extension for Five Server.
https://marketplace.visualstudio.com/items?itemName=yandeu.five-server
Other
121 stars 9 forks source link

Proxy does not work with the VSCode version #32

Closed yandeu closed 1 year ago

yandeu commented 1 year ago

The proxy setting works great using the npm version of five-server, but not using the VSCode extension.

// fiveserver.config.js
module.exports = {
  port: 5500,
  proxy: { '/': 'http://localhost:8888/' }
}
yandeu commented 1 year ago

It works when the server binds to 127.0.0.1 In my example, I run the PHP server on 127.0.0.1:8888 and it works. php -S 127.0.0.1:8888 -t .