Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dbsheta opened this issue Jun 3, 2021 · 1 comment
Open

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

dbsheta opened this issue Jun 3, 2021 · 1 comment

Comments

@dbsheta
Copy link

dbsheta commented Jun 3, 2021

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.

@404shades
Copy link

This is a real concern from security perspective eval function calls should not be allowed as this can make our app more prone to security attacks. Thanks @dbsheta for bringing this into notice.
@manjudr, Can these eval function calls be removed from telemetry.min.js file? Kindly look into this and address what could be the possible solution for this.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants