/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-middleware-conflict-f5f73abcd53a-middleware-conflict-s0230-c0000.md
Middleware Conflict - hono-docs
Middleware Conflict Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt middleware conflict Summary P...
Middleware Conflict
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#middleware-conflict
Summary
Please be cautious about the order of specification when dealing with middleware that manipulates the same header. In this case, Secure-headers operates and the x-powered-by is removed: ```ts const app = new Hono() app.use(secureHeader...
Content
Please be cautious about the order of specification when dealing with middleware that manipulates the same header.
In this case, Secure-headers operates and the x-powered-by is removed:
const app = new Hono()
app.use(secureHeaders())
app.use(poweredBy())In this case, Powered-By operates and the x-powered-by is added:
const app = new Hono()
app.use(poweredBy())
app.use(secureHeaders())