Add headers to HTML/JS/CSS repl

There is a bug in chrome which stops you from being able to skip to certain points in the <audio> element. The fix is to add Accept-Ranges: bytes to the audio file, but I am using a HTML/JS/CSS repl. I am aware it may be possible with react, but are there any packages I can add to easily do this?

1 Like

I used a data url instead in a separate js file to fix my issue.

1 Like

You can only add headers if you’ve got a server, you can use meta tags in some cases, but mostly you will want a server.

3 Likes

How would you use meta tag? I’m not making the repl a server since it is already popular and I am planning to move it to another site in the future.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.