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

Merge pull request #409 from HumanBrainProject/hotfix/noEvalDirective

hotfix: bypass testSafari.js no eval directive
parents 48bb1680 19eaa20b
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,10 @@ const bodyParser = require('body-parser')
let ALLOWED_DEFAULT_SRC, DATA_SRC
const reportOnly = process.env.NODE_ENV !== 'production'
// TODO bandaid solution
// OKD/nginx reverse proxy seems to strip csp header
// without it, testSafari.js will trigger no unsafe eval csp
const reportOnly = true || process.env.NODE_ENV !== 'production'
try {
ALLOWED_DEFAULT_SRC = JSON.parse(process.env.ALLOWED_DEFAULT_SRC || '[]')
......
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