Skip to content
Snippets Groups Projects
Unverified Commit e444d591 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #314 from HumanBrainProject/chore/cspTweaking

chore: report only in non production
parents b5907cd3 0128a2d3
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@ const bodyParser = require('body-parser')
let ALLOWED_DEFAULT_SRC, DATA_SRC
const reportOnly = process.env.NODE_ENV !== 'production'
try {
ALLOWED_DEFAULT_SRC = JSON.parse(process.env.ALLOWED_DEFAULT_SRC || '[]')
} catch (e) {
......@@ -61,7 +63,7 @@ module.exports = (app) => {
],
reportUri: '/report-violation'
},
reportOnly: true
reportOnly
}))
app.post('/report-violation', bodyParser.json({
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment