You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CORS is something that is configured on the server, not on the client. The server needs to send the Access-Control-Allow-Origin so the browser knows it’s fine to connect to it.
I haven’t used amazon to store files myself but I’d imagine it should be possible to configure that. They talk about it here: https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html.
I am trying to fetch all tags data like album name, artist, song image etc from amazon server. Here is one URL of song that I am passing https://s3.amazonaws.com/clueradiomedia/music/%24uicideBoy%24/Either%20Hated%20Or%20Ignored%20-%20Single/Either%20Hated%20Or%20Ignored.mp3
var customurl = 'https://s3.amazonaws.com/clueradiomedia/music/%24uicideBoy%24/Either%20Hated%20Or%20Ignored%20-%20Single/Either%20Hated%20Or%20Ignored.mp3';
But, when I am hitting above function then its showing me this error "Access to XMLHttpRequest at 'http://s3.amazonaws.com/clueradiomedia/music/%24uicideBoy%24/Either%20Hated%20Or%20Ignored%20-%20Single/Either%20Hated%20Or%20Ignored.mp3' from origin 'http://----' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
I am checking the main file but its minified so I can't deduct how to pass request headers for XML request.
Can please suggest me how to pass allow origin headers here?
Thanks!
The text was updated successfully, but these errors were encountered: