vscode-live-server icon indicating copy to clipboard operation
vscode-live-server copied to clipboard

Live server not working

Open nierforprogramming opened this issue 2 years ago • 2 comments

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

nierforprogramming avatar Aug 21 '23 18:08 nierforprogramming

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"

steezer avatar Sep 02 '23 03:09 steezer

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: @.***>

nierforprogramming avatar Sep 02 '23 14:09 nierforprogramming