The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
Prevent CDN script injection into the static OS page (#699)
Dee03bed8118a35
diff --git a/website/next.config.js b/website/next.config.jsindex ef3c083ea..6038d40c5 100644--- a/website/next.config.js+++ b/website/next.config.js@@ -82,7 +82,8 @@ module.exports = {},...['/os', '/os/index.html'].map((source) => ({source,- headers: [{ key: 'Cache-Control', value: 'no-store' }],+ // Keep the standalone page intact: CDN analytics must not inject JavaScript.+ headers: [{ key: 'Cache-Control', value: 'no-store, no-transform' }],})),{source: '/harness-web/:path*',diff --git a/website/public/os/README.md b/website/public/os/README.mdindex 01478f968..d526f0c85 100644--- a/website/public/os/README.md+++ b/website/public/os/README.md@@ -16,6 +16,11 @@ links resolve under the same path with or without a trailing slash. The website'`/os` rewrite serves this file directly without adding JavaScript. Release throughthe [website pipeline](../../README.md#releasing).+The HTML responses include `Cache-Control: no-store, no-transform`. The latter+keeps Cloudflare's automatic Web Analytics injection out of this standalone page;+see its [setup documentation](https://developers.cloudflare.com/web-analytics/get-started/).+Verify the public HTML bytes after rollout as well as the origin's local routes.+## Content and assets- The central narrative is **“Agents are the new apps.”** Conversation directs thediff --git a/website/scripts/check-os-site.mjs b/website/scripts/check-os-site.mjsindex 481f24829..99fc5b92b 100644--- a/website/scripts/check-os-site.mjs+++ b/website/scripts/check-os-site.mjs@@ -11,6 +11,7 @@ for (const route of ['/os', '/os/', '/os/index.html']) {assert.equal(response.status, 200, route);assert.match(response.headers.get('content-type'), /text\/html/);assert.match(response.headers.get('cache-control'), /no-store/);+ assert.match(response.headers.get('cache-control'), /no-transform/);const html = await response.text();assert.equal(html, expected, 'Serve the approved HTML unchanged');assert.doesNotMatch(html, /<script\b/i, 'The OS page must not load an app runtime');