Skip to content

CSP violations for unsafe-inline in [email protected] #11036

@loremaps

Description

@loremaps

Attach (recommended) or Link to PDF file here:

Configuration:

  • Chrome Version 76.0.3809.87 (Official Build) (64-bit)
  • Ubuntu 18.04.2 LTS (Bionic Beaver)
  • PDF.js version: pdfjs-dist v2.2.228
  • Is a browser extension: No

Steps to reproduce the problem:
We have a content security policy that prevents unsafe-inline.
The policy is violated by this line in v2.2.228 Function("r", "regeneratorRuntime = r")(runtime);

Additional info:
Similar issue #10229

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions