karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
300 stars 108 forks source link

Is it possible to return Access-Control-Allow-Origin headers via icecast? #74

Closed alvassin closed 10 years ago

alvassin commented 10 years ago

I'm using howler library (based on HTML5 / web audio) to play sound in my app: https://github.com/goldfire/howler.js

It seems that howler uses XmlHttpRequest inside, and as i have icecast & app on different domains, i see lots of No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin is therefore not allowed access.

Is it possible to return cors headers via icecast somehow?

evanpurkhiser commented 10 years ago

What was your solution to this?

karlheyes commented 10 years ago

You should find the headers being sent now for streams, files and xsl translations. Look in the current github master. It should be in the next tagged update.

karl.