Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Safari can't load audio - XHR (example included)

Open
#66 0 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
api

Research direction

Start with the linked example and its source repository, then reproduce the audio-buffer request in Safari and iOS Safari. Compare the working Chrome and local Safari behavior with the hosted 403 and Access-Control-Allow-Headers errors; done means SoundCloud audio loads into a Tone.js audioBuffer and plays without those errors.

Written by the indexing model from the issue text.

Description

Hi @diurnalist, I'm following up on the updates to issue #27 - 'Can't play sound in Safari OSX'.

Safari is still unable to load SoundCloud audio into a buffer. I've create a simple example here to show you. The example gets 10 tracks. Click one of the songs to load it into an audioBuffer using Tone.js and it should begin playing.

Example: https://lukephills.github.io/soundcloud-api-audio-buffer/
Source Code: https://github.com/lukephills/soundcloud-api-audio-buffer/

It works as expected in Chrome, but Safari and iOS can't load the track and throw a 403 error and Request header field Accept-Encoding is not allowed by Access-Control-Allow-Headers. error.

Interestingly though, running my example locally in Safari works.

Please can you look it into this soon. My project Blokdust relies on Soundcloud working in Safari. I really appreciate your time and effort.

Dominant language
JavaScript
Stars
388
Forks
76
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from soundcloud/soundcloud-javascript

All issues in soundcloud/soundcloud-javascript

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.