• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

223
Views
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?

almost 3 years ago · Juan Pablo Isaza
1 answers
Answer question

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

almost 3 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error