Skip to content

Cannot play radio stream through Navidrome due to CORS policy #45

@puffinjr

Description

@puffinjr

First off, I'm very impressed with ampcast.app and appreciate the service you provide.

I am unable to play certain radio streams on ampcast.app due to a Cross-Origin Resource Sharing (CORS) policy blocking access to the audio source. Specifically, I've observed this with streams originating from https://streams.greenhost.nl:8006/live (or similar URLs)

Steps to Reproduce:

  • Navigate to ampcast.app.
  • Attempt to play the radio station: in my case, Concertzender.
  • Observe that the audio does not play.
  • Open the browser's developer console.

The radio stream fails to load and play. The browser console displays CORS-related errors, such as:

Image

Workaround (Temporary):
I was able to successfully play the stream by installing and enabling a browser extension called "Allow CORS: Access-Control-Allow-Origin" (or similar), which bypasses CORS restrictions locally. However, this is not an ideal solution for end-users, as it requires disabling a browser security feature.

Browser: Brave 1.79.119, Chromium 137.0.7151.68
Operating System: Windows 11 Version 24H2 (Build 26100.4061)
Device: Windows Laptop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions