I am working on a website and I am using the Udesly audio player. The script is supposed to pull audio from my aws s3 bucket, but the script isn’t able to load the song name or album cover. It has to do with the CORS setting.
Anyone here has experience setting up CORS on aws s3? I can’t seem to understand the code in aws s3. Here is the error it gives me on the console when loading the site.
Access to XMLHttpRequest at ‘https://castnowski.s3.ca-central-1.amazonaws.com/02-all-my-friends.mp3’ from origin ‘https://castnowski.webflow.io’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Is any tech person able to help me with this one? I contacted the Udesly support, but it didn’t solve my problem.
I put this code for the CORS.<?xml version="1.0" encoding="UTF-8"?> * GET * HEAD
Even with the code, it still doesn’t let me access the file.
Would greatly appreciate a solution!