I am in need of a single EJS file (configuration includes Express and Request).
app.get('/space', function(req, res){
res.render('space.ejs');
});
The file successfully renders, but only two out of three CSS stylesheet links work when I open the page with my node app. The link that does not work is from W3 school. (It is the only link using http, could that be the reason?) However, all three links work fine when I directly open the file in a browser.
Can someone shed light on this behavior?
Below is the content of the .ejs file:
<!DOCTYPE html>
<html>
<title>W3.CSS Template</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<html>