Live server not working
Current behavior
When I start with live server it goes in chrome browser. It keeps on loading. It stucks and closes my chrome and VS Code. I tried with browser. The problem is same.
Browser:
-
Chrome (desktop) version 116.0.5845.97 (Official Build) (64-bit)
-
Live Server: 5.7.9
-
Platform: Windows and Linux
-
Visual Studio Code: 1.81.1
You should modify the extension as bellow:
$ cd ~/.vscode/extensions $ vim $(ls | grep liveserver)/node_modules/live-server/index.js Search:preserveHost Modify:"proxyOpts.preserveHost = true" to "proxyOpts.preserveHost = false"
Thank You. Issue resolved.
On Sat, Sep 2, 2023 at 9:11 AM steezer @.***> wrote:
You should modify the extension as bellow: cd ~/.vscode/extensions vim $(ls | grep liveserver)/node_modules/live-server/index.js
Search:preserveHost Modify:“proxyOpts.preserveHost = true”为“proxyOpts.preserveHost = false”
— Reply to this email directly, view it on GitHub https://github.com/ritwickdey/vscode-live-server/issues/2820#issuecomment-1703671917, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUPQ5EQKUA7IBHXCXCNQMXLXYKRO5ANCNFSM6AAAAAA3YZ2A3Q . You are receiving this because you authored the thread.Message ID: @.***>