Failed to load resource: the server responded with a status of 404

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 :laughing: 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 :smiley:

Cool man! Happy new year! :smiley:

1 Like