Skip to content
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

[asap] Audio files missing response headers required by Chrome when requested from public #1449

Open
colepeters opened this issue Aug 31, 2023 · 0 comments

Comments

@colepeters
Copy link

Describe the issue
Audio files (in this case, audio/mpeg) served from the Enhance public directory are missing some response headers that are required by Chrome for interacting with HTMLMediaElement APIs.

However, when served from static/, the correct headers are in place.

The missing headers are:

  • Accept-Ranges: bytes
  • Content-Range: bytes <bytes>/<total-bytes>

Steps to reproduce
Steps to reproduce the behavior:

  1. Go to https://dance-7id.begin.app/player/foo
  2. Inspect the response headers for arttr.mp3
  3. Seeking through the track via the range input does not work

Expected behavior
The missing headers should be included in the response.

Desktop
Please complete the following information (if appropriate):

  • OS: macOS
  • Browser Chrome
  • Version 116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant