0

I have already asked this on the live-server issue log but haven't received any response so I will try on here as well.

I'm trying to a href to a local folder in my HTML file. Typically I would do something like this: <a href="C:\Users\aa\Desktop ....>.

If I just open index.html with chrome using start chrome (ls index.html).fullname in a Powershell command line, I'm able to navigate to the link and view the contents of the folder.

However if I start Live Server on the same file using live-server index.html and navigate to the server instance using chrome, the link to my local folder does not work.

I've also noticed similar behavior when embedding images using <img src ... >, namely that the images are rendered when opening the file directly with Chrome, but not when connecting to the Live Server instance.

How can I get live-server to allow local folders/files?

user32882
  • 5,094
  • 5
  • 43
  • 82
  • REad following : https://github.com/tapio/live-server#live-server – jdweng Mar 27 '23 at 08:39
  • You need to use NTFS protocol instead of FILE protocol. NFTS is used to get files from a network drive using tow backslashes and machine name like \\myserver\path. – jdweng Mar 27 '23 at 08:53
  • @jdweng Thanks. Any idea how I can get the NTFS protocol to work on my local machine? I've tried something like `test` but it didn't work. – user32882 Mar 31 '23 at 06:28
  • Windows should automatically support NFTS. The local and remote machines must be in the same group so that credentials can be shared. It is similar protocol to mounting a network drive on the machine. – jdweng Mar 31 '23 at 08:42

0 Answers0