0

I need to avoid sending cookies from my react native video implementation, but can't change the credentials behavior:

import Video from 'react-native-video';
...

const App = () => {
...

  return (
    <View>
      <Video
        source={{
          uri: url,
          type: 'm3u8',
          credentials={false}
          ...
      />
    </View>
  );
}

I'm still getting the Cookie header on server...

Sandor
  • 41
  • 2
  • Is this spelled `whithCredentials`? – windowsill Jun 29 '21 at 23:48
  • I couldn't find useful documentation about it. I tried with different expresiones, like credentials, with same result. I opted here by whithCredentials because it was useful in other libraries for web, like videojs. – Sandor Jul 06 '21 at 18:44
  • `whithCredentials` or `withCredentials`??????? – windowsill Jul 06 '21 at 18:58
  • Even spelled correctly, this component does not have this prop, so not sure what you're on about. – windowsill Jul 06 '21 at 19:00
  • Thanks for your contribution, and sorry for my typo. The point is: ¿how can I set the library to send or not send credentials, i.e. cookies, on each petition? – Sandor Jul 06 '21 at 19:21

0 Answers0