.json from another domain/url not working

I can only seem to get the lottie player to work if the animation .json file is on the same domain or url. Is there a way around this?