title: Soundcloud API - Origin <mysite> is not allowed by Access-Control-Allow-Origin
body: <p>As a follow-up to <a href="https://stackoverflow.com/questions/19351797/play-playlist-or-track-by-permalink-not-trackid/19352075#19352075">Play playlist or track by permalink not trackid</a>: the solution provided works fine seemingly everywhere except Safari on Mac. </p>
  
  <p>On the Safari on Mac we see 
  XMLHttpRequest cannot load <a href="http://api.soundcloud.com/playlists/" rel="nofollow noreferrer">http://api.soundcloud.com/playlists/</a>.json?client_id=..., Origin  is not allowed by Access-Control-Allow-Origin</p>
  
  <p>This is somewhat complicated by the fact that we have embedded the JavaScript into another site (Confluence). The standalone fiddle worked fine on Safari.</p>
  
  <p>From <a href="https://stackoverflow.com/questions/3595515/xmlhttprequest-error-origin-null-is-not-allowed-by-access-control-allow-origin">XmlHttpRequest error: Origin null is not allowed by Access-Control-Allow-Origin</a> I suspect the problem is something to do with jsonp, but really this is out of my expertise.</p>
  
  <p>Any advice appreciated.</p>
  
  <p>Thanks, Martin.</p>