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

152
Vistas
I am getting Allocation of Resources Without Limits or Throttling error

I am getting the Allocation of Resources Without Limits or Throttling errors when I am testing my code. I can't understand how to implement this Throttling with my route.

I have tried with middleware but the same issue with when I test it with snyk.

This endpoint handler performs an operation and does not use a rate-limiting mechanism. It may enable the attackers to perform Denial-of-service attacks. Consider using a rate-limiting middleware such as express-limit.

can anyone explain how to implement it with my route?

here is the endpoint code.

edit: async (req, res) => {
  const editCatagoryId = req.params.slug;
  try {
    const category = await Category.findOne({ where: { slug: editCatagoryId } });
    if(category) {
      res.render('admin/category/edit', { title: 'Category Edit', category });
    } else {
      req.flash('error', 'Something Wrong with Category or Not found !');
      return res.status(404).redirect('back');
    }
  } catch (err) {
    req.flash('error', 'Something Wrong with Editing Category !');
    return res.status(302).render('back');
  }
},
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