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

Add withCredentials option to MediaPlayer component #576

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

mbklein
Copy link
Member

@mbklein mbklein commented Jul 18, 2024

Resolves #575

This PR adds a withCredentials boolean property to the MediaPlayer component to allow the underlying VideoJS component to include cookies and auth info in its XHR requests. Requires that the server be configured to include the correct CORS headers to allow the browser to send credentials. These requirements are included in the documentation of the new property.

Copy link
Collaborator

@Dananji Dananji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good 👍

Thank you for the PR Michael!

@Dananji Dananji merged commit 44b501e into main Jul 18, 2024
2 checks passed
@Dananji Dananji deleted the 575-with-credentials branch July 18, 2024 17:19
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

Successfully merging this pull request may close these issues.

Can't access cross-origin video that requires cookie auth
2 participants