You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
build/server/server.js is causing a CSP error #1622
Describe the bug
This file contains new Function (injected in the browser), which is a form of eval, which causes a CSP error, unless adding unsafe-eval, which sounds like a big security issue 😄
The Content Security Policy (CSP) prevents the evaluation of arbitrary strings as JavaScript to make it more difficult for an attacker to inject unathorized code on your site.
To solve this issue, avoid using eval(), new Function(), setTimeout([string], ...) and setInterval([string], ...) for evaluating strings.
If you absolutely must: you can enable string evaluation by adding unsafe-eval as an allowed source in a script-src directive. ⚠️ Allowing string evaluation comes at the risk of inline script injection.
Activity
speroleague commentedon Nov 17, 2020
This is also a problem for me, when it used to not be. :( Does anyone know when this was put in?
keywan-ghadami-oxid commentedon Feb 4, 2021
is there a known workaround for this eval?
I guess it is only a kind of feature check.