Images url served by express doesn't load when putting it in the img tag on another server.
-- the image url i serve from express here: https://gardennotes.herokuapp.com/api/img/users/default.jpeg
-- if you visit this link the image will load in the browser normally.
-- but if you put it in the html tage img it will not load unless the html tag img is inside html page on the same server that serving the api
-- The following line of code is from express , that responsble for serving the image.
app.use('/api/img', express.static(path.join(__dirname, 'img')));
hope any one has the solution, i have been trying to fix it for two days
