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

282
Vistas
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 Respuestas
Responde la pregunta

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 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