javascript - How can I avoid CORS restriction for web audio api? -


i trying create visualization audio-stream. run cors trouble when try access raw audio data createmediaelementsource() function.

is there way avoid restriction , raw audio data stream on other origins? perhaps using websockets?

there 5 ways deal protections against cross-origin retrieval:

  1. cors headers -- ideal, need cooperation of third-party server
  2. jsonp -- not appropriate streaming content , typically need cooperation of third-party server
  3. iframes , inter-window communication -- not appropriate streaming content , need cooperation of third-party server
  4. turning off browser protections -- need running browser in custom mode, , should not use browser else
  5. server-side proxy -- comparatively slow feasible option

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -