1

When I do a

http://localhost:8090/

Most of the files in the root directory are displayed: e.g. .js and .py . But all of the .wav files are omitted. When trying to access it directly:

localhost:8090/mywav.wav

a 404 is returned. Is there some configuration causing this?

4
  • Does it serve other binary files like .jpg? Commented Jun 11, 2020 at 0:49
  • @Pie'Oh'Pah see my answer: it seems that node.js is whitelisting the files. Need to re-do npm init. Commented Jun 11, 2020 at 1:01
  • Great. What does that have to do with Python server? Commented Jun 11, 2020 at 1:07
  • Indirectly plenty : this is a common usage pattern to serve node.js I'll add node.js tag Commented Jun 11, 2020 at 1:09

1 Answer 1

1

Apparently this has to do with node.js. On a hunch I re-ran

 npm init

Now the wav files - which I had added recently after the initial npm init do show up. So .. does that mean that node is whitelisting files - presumably for security purposes? I still do wonder then if there were a way to disable that given this is a localhost server accessed by me myself and I.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.