INTERNATIONAL JOURNAL OF INTELLIGENT SYSTEMS AND DATA SCIENCE

Integrating Trusted Types with Solid.js and Cypress: Enhancing Web Application Security

Published in issue

October 2026

Volume / Issue

Vol. 1 No. 3

Access

Open access

View PDF

The article details presented on this page reflect the published version of record. Readers may access the full-text PDF, review the citation information, and export the reference in supported citation formats.

Abstract

This paper studies Trusted Types, which is an updated browser restriction to mitigate Cross-Site Scripting (XSS) attacks for the Solid.js framework and the Cypress e2e testing environment. The research commences with the migration of the Solid.js build system from the Rollup bundler over to Vite, requiring minimal changes to the existing codebase while enhancing the efficiency of the development workflow. In order to achieve full Trusted Types compatibility, we relied on custom Vite and Solid.js versions. Also, we made necessary adjustments, such as renaming JavaScript source files from .js to .jsx and implementing Trusted Types policies for generating third-party API content. Furthermore, the study describes a custom Cypress plugin used to validate the enforcement of Trusted Types in automated testing. A developer can easily configure Content Security Policy (CSP) headers and detect Trusted Types violations in real-time with the help of the plugin. It aids in making security testing more dependable. As shown in the experiments, the proposed integration strengthens application resilience against client-side injection attacks with the added benefit of efficient development and flexible testing. While usage of Trusted Types in the open source ecosystem is not widespread, it shows great potential for enhancing the security of modern web applications. The future work will extend Trusted Types support to large-scale real-world applications, improve compatibility with frameworks, and promote wide-scale adoption of secure-by-default web development practices.
Keywords:Content Security Policy (CSP)Cross-site scripting (XSS)Trusted TypesSolid.jsCypress

Cite this Article

Use the following citation when referencing this publication in academic or professional work.

S. Vemula, "Integrating Trusted Types with Solid.js and Cypress: Enhancing Web Application Security", Int. J. Intell. Syst. Data Sci., vol. 1, no. 3, Oct. 2026, doi: https://doi.org/10.67231/5cwekp79.

DOWNLOAD CITATION

Integrating Trusted Types with Solid.js and Cypress: Enhancing Web Application Security | International Journal of Intelligent Systems and Data Science