Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

193
Vistas
how to filter verb tunneling http headres?

We have a REST API implemented with an AWS Lambda Function in JavaScript, and we need to address the Often Misused: HTTP Method Override vulnerability, this is, verb tunneling is possible through the headers X-Http-Method X-Http-Method-Override X-Method-Override and we want to avoid this by filtering/removing/blocking these headers.

We don't have the possibility to filter these headers in AWS API Gateway, so we should do that from the Lambda function when we get the request.

I share some code for context. This is how we get the request:

index.js

module.exports.handler = async event => {
...
    if (event.httpMethod === 'OPTIONS') {
        return {
            statusCode: 200,
            headers: corsHeaders
        };
    }
...
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda