[CORS] Issue with SL app [SOLVED] | Sololearn: Learn to code for FREE!


[CORS] Issue with SL app [SOLVED]

Hi amigos. Can you please check this code and help me, if you know how to fix it? Access to sound files using the Android app generates a CORS error. https://code.sololearn.com/WtotPruSBLLS

6/17/2018 5:22:36 PM

Gustavo Gauthier

4 Answers

New Answer


var sound = new Howl( { src: ["https://cors-anywhere.herokuapp.com/"+mp3Files[item]] });


gladly it's quite the common issue there are other services like cors-anywhere but so far it has been the best one for me p.s thanks for tagging as SOLVED >:D


replace the current var sound = new Howl..... with the code above this will eliminate the CORS issue (this service might not have 100% availablity but it's usually alright)


Well, that did it my friend. Credits to you, and very much appreciated your kind help.