cwilso / Audio-Input-Effects

Live input Web Audio effects
https://cwilso.github.io/Audio-Input-Effects/
MIT License
546 stars 187 forks source link

CORS error due to shaders request (http vs https) #11

Open alemangui opened 9 years ago

alemangui commented 9 years ago

Hello,

I noticed that the shaders are not loading because of a CORS error when accessing the app via http. The requests for the shaders are done with https. It is easily circumvented by just accessing the demo site with https, but since Google links to the http site, it may be desirable to support it as well.

XMLHttpRequest cannot load https://webaudiodemos.appspot.com/input/shaders/sonogram-fragment.shader. 
No 'Access-Control-Allow-Origin' header is present on the requested resource. 
Origin 'http://webaudiodemos.appspot.com' is therefore not allowed access.

Cheers!