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

How to add custom request headers to MP4 videos #8366

Open
liyang9331 opened this issue Jul 18, 2023 · 3 comments
Open

How to add custom request headers to MP4 videos #8366

liyang9331 opened this issue Jul 18, 2023 · 3 comments

Comments

@liyang9331
Copy link

Description

My video is a complete MP4 video, saved on the server and proxied through nginx. Previously, it could be played through a link, but now I need to add token validation. How can I add a request header?

Reduced test case

https://vss.jyipm.com:1833/file/video/20220822/[email protected]

Steps to reproduce

My video is a complete MP4 video, saved on the server and proxied through nginx. Previously, it could be played through a link, but now I need to add token validation. How can I add a request header?

Errors

No response

What version of Video.js are you using?

7.19.2

Video.js plugins used.

No response

What browser(s) including version(s) does this occur with?

Google Chrome 114

What OS(es) and version(s) does this occur with?

Mac OSX

@liyang9331 liyang9331 added the needs: triage This issue needs to be reviewed label Jul 18, 2023
@video-archivist-bot
Copy link

Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands:

@welcome
Copy link

welcome bot commented Jul 18, 2023

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@mister-ben
Copy link
Contributor

You might be able to add a request header with a service worker.

@mister-ben mister-ben removed the needs: triage This issue needs to be reviewed label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants