Skip to content

Add withCredentials option to MediaPlayer component - #576

Merged
Dananji merged 1 commit into
mainfrom
575-with-credentials
Jul 18, 2024
Merged

Add withCredentials option to MediaPlayer component#576
Dananji merged 1 commit into
mainfrom
575-with-credentials

Conversation

@mbklein

@mbklein mbklein commented Jul 18, 2024

Copy link
Copy Markdown
Member

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.

@Dananji Dananji left a comment

Copy link
Copy Markdown
Collaborator

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
@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