react-native-image-zoom icon indicating copy to clipboard operation
react-native-image-zoom copied to clipboard

Does not passes the cookies when loading an image

Open akki-ng opened this issue 9 years ago • 3 comments

My service is backed by authentication which uses session id to check validity of session which was authenticated using CAS. In this scenario, CAS sets up some cookies so that future request are authenticated.

For this setup using default "Image" module from react native works, but while using Image from "react-native-image-zoom" throws an unauthenticated exception in backend.

Somebody please reproduce the issue and confirm.

akki-ng avatar Oct 14 '16 17:10 akki-ng

can you set the cookie header in the image request

<Image
  source={{
    uri: '...',
    headers: {
      "cookie" : ...'
    }
  }}>
</Image>

Anthonyzou avatar Oct 15 '16 17:10 Anthonyzou

@Anthonyzou Thanks, I'll try this, but is there any way by which Image module picks up cookies for the same domain automatically. Because the default Image module is able to do so. If this happens automatically, it will be a relief. Thanks.

akki-ng avatar Oct 15 '16 20:10 akki-ng

set cookie header not working

cbjs avatar Jun 26 '17 10:06 cbjs