Skip to content

EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive #1667

Closed

Description

@NikiLentz

Hi,
I am currently working on a small electron app and trying to use alasql.

Currently i am just trying to read a csv file, I managed to get it working, but I had to add unsafe-eval to my csp, otherwise i got the exception in the title.

Can this be done without adding it, since I don't feel very comfortable adding unsafe-eval to a production app.

Activity

  1. mathiasrw commented on Jul 25, 2023

    @mathiasrw
    Member

    Unsafe eval is deeply embedded in how alasql works - so this will keep being like this.

  2. githorse commented on Feb 19, 2024

    @githorse

    I'm also tripped up by this -- see comment on #1482.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions