samvera-labs / ramp

Interactive, IIIF powered audio/video media player React components library. Styleguidist Docs: https://samvera-labs.github.io/ramp/
https://ramp.avalonmediasystem.org/
30 stars 5 forks source link

Add `withCredentials` option to MediaPlayer component #576

Closed mbklein closed 4 months ago

mbklein commented 4 months ago

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.