Some SoundCloud CDN hosted tracks No Access-Control-Allow-Origin header

I am developing a player that uses the soundcloud API, and I just noticed that some tracks are not playing (rarely). I am using the web audio API, so I know about crossorigin. < p>

I have checked the response title of the track I can play:

HTTP/1.1 200 OK
Content-Type: audio /mpeg
Content-Length: 1397654
Connection: keep-alive
Date: Tue, 21 Apr 2015 16:45:36 GMT
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, HEAD
Access-Control-Max-Age: 3000
x-amz-version-id: Fzg9P1JZimAcyjx6BXUu0MIC91RDDPeN
x-amz-meta -bitrate: 128
x-amz-meta-job: L0mYPThacnlZ
x-amz-meta-duration: 87360
Cache-Control: max-age=252460800
Last-Modified : Tue, 21 Apr 2015 16:36:59 GMT
ETag: "e9c87fb564a5fb9a5ae68759d7cbbb3e"
Accept-Ranges: bytes
Server: AmazonS3
Age: 259
X- Cache: Hit from cloudfront
Via: 1.1 2ce6276171358bf7d052aa190ed98f8d.cloudfront.net (CloudFront)
X-Amz-Cf-Id: zIMj84au8CKYPGA6xqyTetn2N9t489gbwpTBriBYqj9k-pec=

HTTP/1. 1 200 OK
Content-Type: audio/mpeg
Content-Length: 5245804
Connection: keep-alive
Date: Tue, 21 Apr 2015 12:09:06 GMT< br />x-amz-version-id: PAXoRvx.as8.0x.fQWCj6orn7ftbQ_fq
x-amz-meta-bitrate: 128
x-amz-meta-job: ahV2tKo4BhuV
x- amz-meta-duration: 327892
Cache-Control: max-age=252460800
Last-Modified: Tue, 21 Apr 2015 11:16:57 GMT
ETag: "396cddee1091ddab22e88f86220428e4"
Accept-Ranges: bytes
Server: AmazonS3
Age: 16846
X-Cache: Hit from cloudfront
Via: 1.1 690dec7c91091903b0d306bae0caac87.cloudfront.net (CloudFront)
X-Amz-Cf-Id: ILlJV8NGjF47NbijHmKhc4OJ9XGL3rU86NcbffzOI2H_rHUFCnt-7A==

In the latter case, the access control header is missing.
Is this a configuration problem in soundcloud, or is it common for newly uploaded audio tracks? (I don’t remember seeing this problem in old tracks)

Edit: I am 90% sure that all tracks from cf-media.sndcdn.com have this problem, and from ec-media.sndcdn .com tracks are working properly.

I work at SoundCloud. We are aware of this problem and are working Researching the solution.

I am developing a player using the soundcloud API, and just noticed that some tracks are not playing (rarely). I am using the web audio API, so I know crossorigin Thing.

I have checked the response title of the track I can play:

HTTP/1.1 200 OK
Content -Type: audio/mpeg
Content-Length: 1397654
Connection: keep-alive
Date: Tue, 21 Apr 2015 16:45:36 GMT
Access-Control-Allow -Origin: *
Access-Control-Allow-Methods: GET, HEAD
Access-Control-Max-Age: 3000
x-amz-version-id: Fzg9P1JZimAcyjx6BXUu0MIC91RDDPeN
x -amz-meta-bitrate: 128
x-amz-meta-job: L0mYPThacnlZ
x-amz-meta-duration: 87360
Cache-Control: max-age=252460800
Last-Modified: Tue, 21 Apr 2015 16:36:59 GMT
ETag: "e9c87fb564a5fb9a5ae68759d7cbbb3e"
Accept-Ranges: bytes
Server: AmazonS3
Age: 259
X-Cache: Hit from cloudfront
Via: 1. 1 2ce6276171358bf7d052aa190ed98f8d.cloudfront.net (CloudFront)
X-Amz-Cf-Id: zIMj84au8CKYPGA6xqyTetn2N9t489gbwpTBriBYqj9k-ec8DgwxTw==

Compared with tracks I can’t play:

/p>

HTTP/1.1 200 OK
Content-Type: audio/mpeg
Content-Length: 5245804
Connection: keep-alive
Date: Tue, 21 Apr 2015 12:09:06 GMT
x-amz-version-id: PAXoRvx.as8.0x.fQWCj6orn7ftbQ_fq
x-amz-meta-bitrate: 128
x-amz-meta-job : ahV2tKo4BhuV
x-amz-meta-duration: 327892
Cache-Control: max-age=252460800
Last-Modified: Tue, 21 Apr 2015 11:16:57 GMT
ETag: "396cddee1091ddab22e88f86220428e4"
Accept-Ranges: bytes
Server: AmazonS3
Age: 16846
X-Cache: Hit from cloudfront
Via: 1.1 690dec7c91091903b0d306bae0caac87.cloudfront .net (CloudFront)
X-Amz-Cf-Id: ILlJV8NGjF47NbijHmKhc4OJ9XGL3rU86NcbffzOI2H_rHUFCnt-7A==

In the latter case, the access control header is missing.
This is a configuration problem in soundcloud, Or is it common for newly uploaded audio tracks? (I don’t remember seeing this problem in old tracks)

Edit: I am 90% sure that all tracks from cf-media.sndcdn.com have this problem, and from ec-media.sndcdn .com tracks are working fine.

I work at SoundCloud. We are aware of this problem and are working on a solution.

< /p>

Leave a Comment

Your email address will not be published.