Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Serving sounds do not have "Access-Control-Allow-Origin" header
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bram de Jong  
View profile  
 More options Apr 5 2012, 3:46 am
From: Bram de Jong <bram.dej...@gmail.com>
Date: Thu, 5 Apr 2012 09:46:22 +0200
Local: Thurs, Apr 5 2012 3:46 am
Subject: Re: [freesound-api] Serving sounds do not have "Access-Control-Allow-Origin" header
Hi Stu,

Original files and packs are served in a different way because we
don't want people to "crosslink" them: i.e. we don't want people to be
able to point to them directly.

This is probbaly why you are having trouble with them.

My question would be: why do you want to use the original
WAV/AIF/FLAC/OGG/... files from javascript? If this is a web
application, wouldn't mp3 or ogg be much more adequate?

 - bram

On Thu, Apr 5, 2012 at 5:10 AM, Stu <percy...@gmail.com> wrote:
> Hi, I'm playing around with loading files from FreeSound into JavaScript,
> filtering by "type=wav" then using the URL in sound.serve to download the
> wave file. The problem is that it seems the "Access-Control-Allow-Origin" is
> not set when serving the original file:

>   HTTP/1.1 200 OK
>   Server: nginx/0.7.67
>   Date: Thu, 05 Apr 2012 02:42:09 GMT
>   Content-Type: application/octet-stream
>   Content-Length: 398992
>   Last-Modified: Wed, 04 Apr 2012 22:39:53 GMT
>   Connection: keep-alive
>   Content-Disposition: attachment;
> filename="150423__pjcohen__ottaviano22halflathedridecymbal2715gbow.wav"
>   Accept-Ranges: bytes

> So I can't load it from within my web app. The preview MP3/OGG files work
> fine, but then the library I'm using can't load MP3 or OGG.

> Is this by design?

--
http://www.samplesumo.com
http://www.freesound.org
http://www.smartelectronix.com
http://www.musicdsp.org

office: +32 (0) 9 335 59 25
mobile: +32 (0) 484 154 730


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.