Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

337
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda