curl -s -I https://freesound.org/data/previews/392/392617_7383104-hq.mp3
I get: access-control-allow-origin: *
However, the preflight request with OPTIONS returns a 405 Method Not Allowed
curl -s -I -X OPTIONS https://freesound.org/data/previews/392/392617_7383104-hq.mp3
Would it be possible to enable the OPTIONS preflight request?
I believe it is required for any cross origin request for freesound data.
If I am not mistaken, I believe it currently works in some settings where the <audio crossOrigin="anonymous" /> tag fetches the data. However, within a PWA or other browser contexts, the preflight OPTIONS will be necessary.
curl -s -I -X OPTION https://freesound.org/data/previews/392/392617_7383104-hq.mp3
(that's OPTION without the 's')
which does NOT return a 405, but also does NOT return with Access-Control-Allow-Origin: *
--
---
You received this message because you are subscribed to the Google Groups "Freesound API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to freesound-ap...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/freesound-api/489d48b7-c5c4-4b1f-92da-f4ccf806f294n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Freesound API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/freesound-api/EH1l0-MBYWg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to freesound-ap...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/freesound-api/CABDPa_wZj2w617zTkAsv%3DMQit58KG%2B5tUi-SDzTDQ-BPcehQ9w%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/freesound-api/CAHjm5xwWrA%3DSm_PET84ai_SyAzbpdf1mAuZdvn3cN%2BvxNHZ3dw%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/freesound-api/CABDPa_yOHsD4qyRszmU_2UgfugsO3eVY12hWEcrwwKB1JzG45g%40mail.gmail.com.