Make staging runtime configuration compatible with strict CSP #58

Closed
opened 2026-08-21 14:56:09 +00:00 by timmy · 0 comments
Owner

Parent: #57

Provisioning preflight found that the reviewed Caddy CSP script-src 'self' blocks the inline window.__TIMMY_CONFIG__ inserted by server.mjs. Fix before live reload without adding unsafe-inline.

  • Serve bounded runtime configuration as a same-origin external JavaScript resource under the configured base path.
  • Load it before app.js; remove inline executable config.
  • Preserve safe release/base-path/staging-label encoding and root compatibility.
  • Add browser acceptance with the exact staging CSP and verify no CSP console violations.
  • Keep Caddy script-src 'self' and do not deploy in this issue.
Parent: #57 Provisioning preflight found that the reviewed Caddy CSP `script-src 'self'` blocks the inline `window.__TIMMY_CONFIG__` inserted by `server.mjs`. Fix before live reload without adding `unsafe-inline`. - Serve bounded runtime configuration as a same-origin external JavaScript resource under the configured base path. - Load it before `app.js`; remove inline executable config. - Preserve safe release/base-path/staging-label encoding and root compatibility. - Add browser acceptance with the exact staging CSP and verify no CSP console violations. - Keep Caddy `script-src 'self'` and do not deploy in this issue.
timmy added this to the M3 — Private Beta & Longitudinal Value milestone 2026-08-21 14:56:09 +00:00
timmy closed this issue 2026-08-21 15:04:45 +00:00
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/timmy-talking-turd#58
No description provided.