Open R10burning opened 4 years ago
me too, proxy doesn't work
I've tried and is works for me!
vscode config:
you request:
[node]: Keep in mind that after you changed you proxy configs, you need to restart you vscode, if not, your proxy won't works.
Nope, not working with post requests, only get requests work for me.
same problem.
"liveServer.settings.host": "localhost",
"liveServer.settings.proxy": {
"enable": true,
"baseUri": "/vip",
"proxyUri": "http://domain/vip"
},
"liveServer.settings.CustomBrowser": "chrome",
"liveServer.settings.port": 8084,
"liveServer.settings.root": "/",
"liveServer.settings.useWebExt": false
$.ajax("/vip/get/")
404
Still not working
There is a solution for this issue? It's not working for me neither.
I've tried and is works for me!我已经尝试过并且对我有用!
vscode config: VSCode配置:
you request: 您的请求:
[node]: Keep in mind that after you changed you proxy configs, you need to restart you vscode, if not, your proxy won't works.[node]: 请记住,更改代理配置后,您需要重新启动 vscode,否则,您的代理将无法工作。
必须重启vscode 才能用,You must restart vs code to use it
env: win10 version 5.6.1 setting.json: liveServer.settings.proxy": { "enable": true, "baseUri": "/api", "proxyUri": "http://baobab.kaiyanapp.com" }, request: axios.get('/api/v4/tabs/selected').then(function(res) { console.log(res) }) result: 404 Request URL: http://127.0.0.1:5500/api/v4/tabs/selected Request Method: GET Status Code: 404 Not Found