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

334
Vistas
Hiding API Key with config-vars on React app deployed on heroku, trying to access the keys but not working

I have created a react-app that makes an API call and displays the results on the page, that's it.

After adding my API Key through Heroku's config vars, I put in this for key "api_key" and then I added my key in the value section.

I put in the following code at the top of the

let api_key = process.env.bitquery_key

Now, in the section of the javasript code that calls the API Key I put this:
X-API-KEY": api_key

This doesn't work. The API Key is invalid.

I also tried to do

console.log(api_key)

This didn't work either. Would apperciate some help, I tried to look around but no one made videos on this and couldn't find on stackoverflow, guess its super easy so no one had an issue with it lol. Appreciate the help, thanks

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