Привет
Настроен express
const express = require('express');
const path = require('path')
const app = express();
app.get('/',(req,res) => {
res.status(200)
res.sendFile(path.join(__dirname, 'views', 'index.html'))
})
const PORT = process.env.PORT || 3000
app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`)
}) ;
index.html представляет собой пока пустую страницу, должно отобразиться просто сообщение "Нello"
однако после запуска сервера получаю сообщение на странице - "Cannot GET /:"
где может быть ошибка?(
однако в консоли есть ошибка
Refused to load the image '
localhost:3000/favicon.ico' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.
ее никак убрать не удалось, не понимаю в чем проблема(