diff --git a/bot/src/app.js b/bot/src/app.js index 1029d90..c69dab3 100644 --- a/bot/src/app.js +++ b/bot/src/app.js @@ -4,6 +4,9 @@ const internalRouter = require('./internal/internal.routes') const app = express() +// Internal-only listener, but don't advertise the stack anyway (defense in depth). +app.disable('x-powered-by') + app.use(express.json()) app.get('/health', (req, res) => res.json({ status: 'ok' })) diff --git a/client/vite.config.js b/client/vite.config.js index 46b418f..38ee91b 100644 --- a/client/vite.config.js +++ b/client/vite.config.js @@ -15,5 +15,9 @@ export default defineConfig({ }, build: { outDir: 'dist', + // Don't inject the inline module-preload polyfill script — modern browsers all + // support modulepreload, and an inline