How can I avoid CORS restriction for web audio api?
问题 I trying to create some visualization for audio-stream. But I run into CORS trouble when I try get access to raw audio data with createMediaElementSource() function. Is there a way to avoid this restriction and get raw audio data from stream on other origins? Perhaps using WebSockets? 回答1: There are five ways to deal with the protections against cross-origin retrieval: CORS headers -- this is ideal, but you need the cooperation of the third-party server JSONP -- not appropriate for streaming