L
L
Lolut2018-07-15 13:34:32
Google
Lolut, 2018-07-15 13:34:32

Why does Secure Policy swear?

Refused to load the script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'".
inject because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback sendPost Failed to load resource: the server responded with a status of 404 (Not Found)

How to fix this error?
index.js
const app = require('./app')
const port = process.env.PORT || 5000
app.listen(port, () => console.log(`Server has been started on ${port}`))

app.js
const express = require('express')
const app = express()
module.exports = app

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question