Skip to content

Issue in telemetry.min.js when CSP enabled #46

Description

@dbsheta

We have a security requirement due to which we need to add CSP headers in our app. Following the the nginx configuration we are using for the same:

add_header Content-Security-Policy "default-src 'self'  ${URL} script-src 'self' 'nonce-$request_id'; object-src 'self'; img-src 'self' blob: data:; font-src 'self'; media-src 'self'; form-action 'self'; style-src 'self' 'unsafe-inline'; frame-ancestors 'self';"

After adding this, we are getting unsafe-eval exception in the browser.

download

The error is because some code in telemetry.min.js is using eval, which is not recommended from security perspective.

We are looking for an efficient solution for this, but a quick fix would also be really helpful.

Activity

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