phptek / silverstripe-sentry

Flexible Sentry compatible bug aggregation client for Silverstripe applications.
BSD 3-Clause "New" or "Revised" License
11 stars 22 forks source link

CSP Logs Fail #82

Open phptek opened 2 years ago

phptek commented 2 years ago

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 commented 7 months ago

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

phptek commented 2 months ago

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