Skip to content

Content Security Policy o blocks the use of 'eval' in JavaScript` #83

@jonusgreen

Description

@jonusgreen

The Content Security Policy (CSP) prevents the evaluation of arbitrary strings as JavaScript to make it more difficult for an attacker to inject unauthorized 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions