-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[iOS] Headers not working #2089
Comments
Tested it on android everything works there. On real iOS device and simulator it doesn't. |
also tried now with newest version 5.1.0-alpha6, still not working |
Oh wow, I guess headers on iOS are disabled due to this: #1091 |
Oh wow, this is tricky. So back then you had to manually edit the RCTVideo.m (if your react-native-video version is < 5.1.0-alpha6). |
Bug
I add to the video's
source
headers for authorization according to the docs: https://github.com/react-native-community/react-native-video#headersThe video never loads, and when inspecting the network traffic I see
401: Unauthorized
for the video requests. Also I can see that no authorization header is sent:Platform
Which player are you experiencing the problem on:
Environment info
React native info output:
Library version: 4.4.5
Steps To Reproduce
Unfortunately, it's a bit hard to provide reproduction for this.
if it's absolutely needed I can create one.
Expected behaviour
The video loads and plays / auth header is attached to the request's headers.
The text was updated successfully, but these errors were encountered: