Open
Description
The optimization in PR #464 broke support for users who run a strict Content-Security-Policy (CSP).
Specifically, this line sets the style
attribute on a DOM node and will be blocked without style-src: 'unsafe-inline'
(which is the unsafe CSP).
rrweb/packages/rrweb/src/record/mutation.ts
Line 487 in 661c746
For any apps that pull in the affected versions and have a strict CSP, this issue will generate a very large numbers of errors like the one below (one for each time that line of code runs). As a possible side effect, any error reporting services or report-url endpoints may be quickly overwhelmed with error reports.
Metadata
Metadata
Assignees
Labels
No labels