Replies: 2 comments 2 replies
-
Please check the FAQ section of the readme, it’s covered there. |
Beta Was this translation helpful? Give feedback.
2 replies
-
did you find your solution.? I'm having same issue like you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
CORS is blocked for wavesurfer only, even if I use a media element, but the same URL works everywhere else.
An mp3 is served from S3 via CloudFront. When I request the mp3 URL in the browser directly, the browser downloads the file.
When I add an
<audio>
element to my page and use the URL as the source, the mp3 plays.However when I use the URL in the
url
param passed to wavesurfer, I gethas been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I found the thread suggesting using the
media
param: #3291I tried both
document.createElement('audio')
and referencing the media element on the page that does play. I get the same error.wavesurfer successfully played MP3s from the same S3/CloudFront setup last week. No settings have been changed on AWS.
wavesurfer is served locally so the version has not changed. The current version is
7.7.10
.Finally, I removed all of my custom code and simply added the docs example to my page but got the same error:
Am I doing something wrong? What am I missing? What else can I try? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions