Skip to content

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

Open

Description

@lukephills

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions