You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated the GET in convertHandler to pull FROM:http://api.openrates.io.... CURRENT URL in Git Project -> TO: 'https://api.openrates.io...." in codesandbox (which is https://codesand....) & it works... It has to do with CORS & requesting resources -
Dev environment: localhost vs. http vs. https workarounds:
"You’ve run afoul of the Same Origin Policy – it says that every AJAX request must match the exact host, protocol, and port of your site. Things that might cause this:
Hitting a server from a locally-served file (a request from file:///YourApp/index.html to http://api.awesome.com)
Access to XMLHttpRequest at 'http://api.openrates.io/latest?base=USD&symbols=GBP' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
** FROM axios API call in Converter.js:41
Oops, something broke with GET in convertHandler() - we've got a: Network Error
The text was updated successfully, but these errors were encountered: