Skip to content

Error: call to Function() blocked by CSP #401

@cr

Description

@cr

math.js 1.7.0 fails with Error: call to Function() blocked by CSP in line 14065 when a CSP is applied:

var factory = new Function ('defs', factoryCode);

This may not be the only code that fails under a CSP. Adding the 'unsafe-eval' CSP attribute doesn't prevent this (in Firefox).

It should be possible to use math.js in a CSP-secured environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions