fix: encode body of translation updating, reduce p margin in prose

This commit is contained in:
Rotimi Best
2026-06-25 22:12:38 +01:00
parent 46acad8052
commit 50a4f24b7c
10 changed files with 132 additions and 67 deletions
@@ -0,0 +1,12 @@
/**
* Custom request `Content-Type` for write endpoints whose bodies contain
* HTML or AI-generated content.
*
* Render fronts every service with Cloudflare, which runs OWASP Managed Rules
* on bodies whose content-type substring-matches `application/json` and rejects
* payloads that contain SQL-injection or XSS-shaped strings. A vendor-specific
* type falls through inspection. A server middleware unwraps the base64
* envelope and rewrites the content-type back to `application/json` so
* `zValidator` parses the body unchanged.
*/
export const CIO_ENVELOPE_CONTENT_TYPE = 'application/x-cio-agent';