beginner-javascript icon indicating copy to clipboard operation
beginner-javascript copied to clipboard

77 - Currency Converter Exchange Rates API problems

Open janez33 opened this issue 1 year ago • 0 comments

So I got the free trial API key from https://api.exchangeratesapi.io/ and when I tried it in chrome I got error Access Restricted - Your current Subscription Plan does not support HTTPS Encryption. I tried with HTTP but Chrome was of course internally redirecting me to HTTPS. So I disabled it via chrome://net-internals/#hsts and it started working, but somehow if I ran the function fetchRates() in chrome console from my local server it was still redirecting me to HTTPS so I was unable to get currencies.

I switched to this free API https://app.exchangerate-api.com/

I don't know why but it took me 1 hour of my life, I'm going to sleep it off now... Goodnight, world!

janez33 avatar Sep 24 '23 21:09 janez33