#1344·reactxp

[Feature Request] Trusted Types support

Author: tosmolkaCreated Mar 22, 2022Updated Mar 22, 2022

Problem Statement

Not sure if this lib is still actively maintained but some of our apps still depend on it and use it

ReactXP framework should support Trusted Types API so that it can be seamlessly integrated with web applications that enforce Trusted Types for all DOM XSS Injection Sinks (e.g. assignments to Element.innerHTML property) using require-trusted-types-for CSP directive. Trusted Types APIs are now fully supported in web browsers based on Blink engine (Chrome, Edge, Electron and others).

Proposed solution

First we need to identify all instances where ReactXS integrates with such methods and propose re-factoring. We need to be careful to keep supporting web browsers without Trusted Types support and, obviously, mobile platforms (iOS and Android).

We know about these locations so far:

References