Reference
Security
How Leiho protects your site.
- Editing routes check a nonce and
edit_poston the content. The content API only serves published items of the Leiho content types; it can require a token (compared in constant time, sent inX-Leiho-Token). Publishing requirespublish_pages(filterleiho_deploy_capability), settings requiremanage_options. - The bridge is inert outside the editor iframe and checks the origin of every message, in both directions. It makes no network request.
- Values are sanitized per field type on write.
requiredandmaxlengthare enforced server side. Attachments and related posts are checked for read access. - Use a fine-grained GitHub token limited to the deployment repository (
Actions: write, orContents: writefor the commit mode).
Found a vulnerability? See SECURITY.md.