When I come up against the barrier of cross-domain policy, my go-to solution is to employ a PHP
proxy.
By utilizing PHP
to fetch the desired file, it becomes easily accessible. Accessing the PHP
file on your server eliminates any cross-domain complications.
Your PHP script will resemble something along these lines. Whenever you access the PHP
file, the content from the fetched file will display as though it originated from your own domain.
This method is essentially a quick fix and should be employed only when restrictions are out of your control.
Below is the necessary PHP code:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://nfl.com/liveupdate/scorestrip/ss.json');
curl_exec($ch);
curl_close($ch);
?>