Sem o cabeçalho Strict-Transport-Security
MCPS-HDR-001Por que importaSem ele, um atacante pode manter o navegador em HTTP em qualquer visita seguinte. O HSTS faz o navegador usar só HTTPS.
Como corrigirEnvie Strict-Transport-Security: max-age=31536000 em toda resposta HTTPS.
return new Response(body, { headers: { 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' } })app.use((req, res, next) => { res.setHeader('Strict-Transport-Security', 'max-age=31536000; includeSubDomains'); next() })- Requisição
POST https://mcp.ezgusavdo.uz/mcp (initialize)- Resposta
401- O que vimos
no Strict-Transport-Security
Visto na resposta do servidor
EspecificaçãoRFC 6797 (HTTP Strict Transport Security)