I am new to web programming and I have the following issue.
So I am trying to set up a small server on Jupyter notebook. The issue right now is when I do
<script src="../src/main.js">
in my HTML, it cannot find the corresponding JS file. I tried http://localhost:8888/src/main.js as the path but this does not work either as it is forbidden.
I am wondering is there any way to work around this?
Thanks
EDIT: the project structure is similar to the following
/
server.py
src/
main.js
templates/
main.html
server.py is a flask application that can render the main.html.
GET http://localhost:8888/src/main.js net::ERR_ABORTED 404 (Not Found)or simply 404 not found if I do../src/main.js