|
|
dade93ee5c
|
Implement Sentry JavaScript integration with proper CSP configuration
- Restored Sentry JavaScript SDK script tag
- Created custom ContentSecurityPolicy plug to allow Sentry domains
- Added proper CSP headers allowing:
- js.sentry-cdn.com for the SDK
- *.ingest.sentry.io and *.sentry.io for error reporting
- Initialized Sentry in app.js with:
- Proper DSN configuration
- Browser tracing integration
- 10% transaction sampling rate
- Filter for non-critical ResizeObserver errors
- Added CSP plug to router pipeline after put_secure_browser_headers
This properly integrates Sentry for JavaScript error tracking while
maintaining security through explicit CSP configuration.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-07-18 15:17:35 -05:00 |
|