There are numerous online resources which provide JavaScript APIs to access their services. To be more clear, I will base my question on the example of MapBox, but this appl
You may like to read up on CORS headers These allow you restrict which domain can call a remote web service.