p5.js-sound
p5.js-sound copied to clipboard
CORS error on loading a song from url.
I was trying to load a song from a url but gives me the CORS error -
Code -
let url = "https://malpha.123tokyo.xyz/get.php/f/98/CtgD91Ev4NU.mp3?cid=MTczLjI0OS4xMC4yMjIsMTczLjI0OS4xMC4yMjJ8R28taHR0cC1jbGllbnQvMS4xfERF&h=bpV5rGEBlKfcLqfpaO_U2Q&s=1641466012&n=Rozana-Full-Video-Song-Naam-Shabana-Akshay-Kumar-Taapsee-Pannu-Taher-Shabbir-I-Shreya-Rochak"
song = loadSound(url)
In which url is the link for the song .mp3
For now i got to know this error is caused due to something missing in headers in request.
Please tell me a way out of it!
Thanks in advance!!