Skip to content

Tesseract.js requires script-src: eval CSP #369

Closed
@ClearlyClaire

Description

Tesseract 2.0.0-beta.2 fails to run with:

Content Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”).

This is a regression from 2.0.0-alpha.16.

This is caused by the line Function("r", "regeneratorRuntime = r")(runtime); introduced by facebook/regenerator@063f14e in the regenerator module

I suspect this may have been introduced in Tesseract.js by 8e73c8d but I haven't actually checked yet.

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