Security headers

From trezor/trezor-suite · View interactive version

Security headers is an AI agent skill from the GitHub repository trezor/trezor-suite. Generated code must be aligned with security headers (e.g. no unsave JS eval). The permissions policy is especially relevant when changing any code related with the `navigator` object.

How to use this skill

Skill file

Security headers

Preview

Start local server with production build and applied security headers:

yarn workspace @suite-app/web-app preview

Build & Preview

Build web app and run the preview command:

yarn workspace @suite-app/web-app build:preview

or

root level command:

yarn suite:build:web:preview

Security Headers

Permissions-Policy Rationale (Enabled Directives)

clipboard-read is intentionally not enabled because current direct usage is test-only (suite/e2e/tests/wallet/receive.test.ts) rather than Suite Web runtime behavior.

Disabled directives (=()) are intentionally blocked because there is no direct web runtime use at this time.

Direct Code References

MDN references:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.