{"agent":"claude","input":"Add security headers and a Content Security Policy to this React Router app with a custom Express server and open a pull request. Read package.json, server.js, server/app.ts, app/context.ts, app/root.tsx, app/routes/home.tsx, vite.config.ts, tsconfig.node.json and Dockerfile first. Add helmet to dependencies. In server.js, before the static handlers, generate a per-request nonce with crypto.randomBytes on res.locals.cspNonce and register helmet() with a CSP: script-src 'self' plus the nonce, style-src 'self' and https://fonts.googleapis.com, font-src 'self' and https://fonts.gstatic.com, img-src 'self' and data:, connect-src 'self', frame-ancestors 'none'; add 'unsafe-inline' to script-src and ws: to connect-src only when NODE_ENV is development so Vite HMR works; enable Strict-Transport-Security only when a TRUST_PROXY variable is set. Declare a cspNonce context in app/context.ts, set it in getLoadContext in server/app.ts from res.locals, return it from a root loader in app/root.tsx and pass it as nonce to Scripts and ScrollRestoration in Layout, reading it defensively so the ErrorBoundary still renders. Run npm run typecheck, npm run build and npm start, curl -I the home page and paste the headers, open the page in a browser and confirm no CSP violation and the font loads, run npm run dev and confirm HMR connects, and build the Dockerfile. Paste the output in the pull request. Do not change routes or styling.","resources":[{"url":"https://github.com/your-org/your-app"}]}