내 컴퓨터에 있는 이미지파일의 정보를 얻어오는데 크롬정책에 걸림;;

그래서 웹서버( node )하나 만들어서 우회 할려고 했는데  문제가 발생함.


node로 express 써서 했는데 image파일을 못얻어 오는거임 -_-;


이게 핵심코드이고 test.html 안에서 image파일의 경로에 접근하는게 있는데 왜 node로 돌리니까 이미지파일을 못찾음? 


app.get('/', (req,res) => {

fs.readFile('test.html',(err,data) => {

res.writeHead(200, {'Content-Type' : 'text/html'});

res.end(data);

})

});


크롬에서 이렇게 에러뜸;;


GET http://localhost:8888/image.png 404 (Not Found)