Everytime I load the page, it throws this “Failed to load resource” error, but i can open the resource specified when viewing page source and the page seems to load properly. Any ideas?
We might need a bit more information - do you have a Codepen where this is happening? Alternatively, do you have any Adblockers or other browser plugins that might be blocking this resource?
hey tetchi!
i’ve solved the problem i’m using node.js on Glitch.
Apparently, I have to specify in the server.js (the main back end script) the folder to be accessed by the client.
I just added the following code:
app.use(express.static(__dirname + '/public/views'));
Thanks
Cool man! Happy new year!
1 Like