When making an API call using JavaScript (using XMLHTTPRequest, $.ajax, axios, etc...):
- Set the GET url endpoint + the requested endpoint: (I.E., "https://cors-router-proxy.herokuapp.com/fetch/https://www.monaconft.vip/api/metadata/7")
Check out James Ward's Saleforce CORS Proxy written in Scala.
And also: https://github.com/ccoenraets/cors-proxy/blob/master/
Credits to: https://github.com/honnamkuan/cors-cache-proxy/blob/
Source code of current implementation: https://github.com/Rob--W/cors-anywhere/