Compare commits

...

2 Commits

Author SHA1 Message Date
Ubbe
2f3027e2a4 Merge branch 'dev' into lluisagusti/open-2736-fix-cross-origin-stylesheet-warning 2026-02-12 20:36:24 +08:00
Lluis Agusti
02fde96f08 fix(frontend): suppress cross-origin stylesheet security error
Add `ignoreErrors` to Sentry client config to filter out
`SecurityError: CSSStyleSheet.cssRules getter: Not allowed to access
cross-origin stylesheet` errors. These are caused by Sentry Replay
(rrweb) attempting to serialize DOM snapshots that include cross-origin
stylesheets from browser extensions or CDN-loaded CSS.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 19:32:26 +08:00

View File

@@ -22,6 +22,11 @@ Sentry.init({
enabled: shouldEnable,
// Suppress cross-origin stylesheet errors from Sentry Replay (rrweb)
// serializing DOM snapshots with cross-origin stylesheets
// (e.g., from browser extensions or CDN-loaded CSS)
ignoreErrors: [/Not allowed to access cross-origin stylesheet/],
// Add optional integrations for additional features
integrations: [
Sentry.captureConsoleIntegration(),