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

222
Vistas
How can i protect api from client?

I'm developing a site with react and nextjs. So in the API folder, I write some API endpoints. Now I don't know how can I protect them from clients? I want to use these APIs directly from the site. and I won't the user be able to access API from his browser. With jwt can I solve this problem? Or right solution is something else?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

If it's your own API endpoints, it should be running on its own server, e.g. Express.js.

If it's a 3rd-party API, you could add private information like password, API keys, etc, onto a .env file. You don't need to hide the API endpoints themselves in this case as they will be visible to the client anyway.

about 4 years ago · Juan Pablo Isaza Denunciar

0

if your client never triggers a request to your server then your API should not be visible, but also you can add some pretty basic validation in the case that someone reaches your API, like read a specific token in your API that only your server knows or something like that.

about 4 years ago · Juan Pablo Isaza Denunciar
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