Skip to content

Security

SIX Web Components work well in environments with a Content Security Policy (CSP). Since they are built with Stencil, they support CSP nonces out of the box and can be used in projects with strict security headers.

A CSP defines which scripts, styles, images, and other resources the browser may load. Using nonces (random tokens generated per request) makes it possible to set up a strict CSP: only resources with the matching nonce will run, which effectively blocks unwanted or injected code.

To use SIX Web Components in such a setup: