burnstony#1975B

playing mp3

trying to play an mp3


import {Howl, Howler} from 'howler';

const new_sound = new Howl({src: [
"https://500songs.com/podcast-download/161/introduction.mp3"
]})
new_sound.play()


but I get an error
Access to XMLHttpRequest at 'https://500songs.com/podcast-download/161/introduction.mp3' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Was this page helpful?