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

283
Visualizações
issue with NextJS env

i receive the following error

index-afe1f710608edded.js:1 Mixed Content: The page at 'https://currency-rho.vercel.app/' was loaded over HTTPS, but requested an insecure resource 'http://api.currencylayer.com/live?access_key=138ca01354c449d7741ab9dbca4f4252'. This request has been blocked; the content must be served over HTTPS.

I assume its because im using the prefix NEXT_PUBLIC to the env variable in order to have access from the browser

thats the functionality I wanted, on local works fine but in deployment the request is blocked

  • preview link
  • production link

any ideas how to solve?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The error message provides a useful hint:

...the content must be served over HTTPS.

Change http://api.currencylayer.com/... to use HTTPS: https://api.currencylayer.com/....

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