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

CSP Logs Fail #82

Open
phptek opened this issue Apr 8, 2022 · 2 comments
Open

CSP Logs Fail #82

phptek opened this issue Apr 8, 2022 · 2 comments

Comments

@phptek
Copy link
Owner

phptek commented Apr 8, 2022

Attempting to send CSP violations to Sentry results in the module itself throwing an exception:

[2022-04-08 12:51:25] error-log.ALERT: Fatal Error (E_CORE_ERROR): Exception thrown without a stack frame {"code":16,"message":"Exception thrown without a stack frame","file":"Unknown","line":0,"trace":null} []

PhpTek\Sentry\Handler\SentryHandler::write at line 106
@Firesphere
Copy link

How are you sending CSP violations to Sentry with the module? Does it have some CSP proxy?

@phptek
Copy link
Owner Author

phptek commented Apr 22, 2024

How are you sending CSP violations to Sentry with the module? Does it have some CSP proxy?

Off the top of my head / from memory it's as simple as using the Sentry DSN as the URL in the CSP endpoint config for CSPBackend.report-uri

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