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

Bug reporting dialog requires "unsafe-inline" for "style-src-elem" CSP #18126

Open
jens-duttke opened this issue Apr 7, 2020 · 3 comments
Open

Comments

@jens-duttke
Copy link

Summary

Since there are many browser extensions (and also some ISPs) which inject scripts and styles into my web application, which results into errors, I use a restrictive CSP setup, which bans inline code, evals, etc.

Unfortunately, to be able to use the Sentry dialog for bug reporting, I need to set "unsafe-inline" for "style-src-elem", because it uses inline styles, which openes a door for errors.

Motivation

My motivation is, to prevent injected code into my webapp as much as possible. To prevent errors, which are triggered by browser extensions and ISPs.

Additional Context

I'm using JavaScript and the following call, to open the report dialog:

Sentry.showReportDialog({ eventId: event.event_id });
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2021

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Accepted, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@jens-duttke
Copy link
Author

Are there any news regarding this issue?

@mfb
Copy link

mfb commented May 10, 2022

FYI I created a related issue #34415

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

No branches or pull requests

4 participants