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

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

#1

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?


#2

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?


#3

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:


#4

Cool man! Happy new year! :smiley: