-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XHR headers not sent, misspelled headers options in util.fetchFile #2025
Comments
You should be using the |
The Unfortunately I can confirm fetchRequest.headers = fetchOptions.headers; and it worked like charm 👍 It means that if we are providing a |
hmm, so it's a bug? |
Not a bug but a doc mistake. as you said the right option to use is xhr: { requestHeaders: {} } and not xhr: { headers: {} } |
Maybe a good idea to update the doc to. |
If it is working for you I will check other browsers, as it is not working for me on Chrome 86 (Dev). |
Where is the doc error visible? |
Documentation > Options > xhr
|
Wavesurfer.js version(s): 4.0.1
Browser and operating system version(s): Firefox, Ubuntu 20.04
Code needed to reproduce the issue:
No header sent in request. Checked the code and getArrayBuffer function calls util.fetchFile with options containing params.xhr ( containings headers )
when checking util.fetchFile i see it looks for options.requestHeaders, instead of options.headers i think.
The text was updated successfully, but these errors were encountered: