Skip to content
Snippets Groups Projects
Commit 5262b47d authored by Xiao Gui's avatar Xiao Gui
Browse files

hotfix: bypass testSafari.js no eval directive

parent c1bad542
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,10 @@ const bodyParser = require('body-parser') ...@@ -3,7 +3,10 @@ const bodyParser = require('body-parser')
let ALLOWED_DEFAULT_SRC, DATA_SRC 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 { try {
ALLOWED_DEFAULT_SRC = JSON.parse(process.env.ALLOWED_DEFAULT_SRC || '[]') 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