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
-11
View File
@@ -1,11 +0,0 @@
/**
* Custom request `Content-Type` for `/agent/*` write endpoints.
*
* Render fronts every service with Cloudflare, which runs OWASP Managed Rules
* on bodies whose content-type substring-matches `application/json` and rejects
* AI chat payloads that contain SQL-injection-shaped strings (e.g. user
* messages discussing `SELECT … WHERE … OR 1=1`). A vendor-specific type
* falls through inspection. A small server middleware rewrites it back to
* `application/json` so `zValidator` parses the body unchanged.
*/
export const AGENT_CONTENT_TYPE = 'application/x-cio-agent';
@@ -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';
+1 -1
View File
@@ -4,4 +4,4 @@ export * from './content';
export * from './domains';
export * from './embeds';
export * from './error-codes';
export * from './agent';
export * from './b64-envelope';