cwilso/Audio-Input-Effects

CORS error due to shaders request (http vs https)

alemangui opened this issue · 0 comments

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!