question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How could I get cookie in webview which is set in react-native?

See original GitHub issue

Bug description:

I have fetch a request in react-native, then the server response set a cookie named jssession.

When I send http request in webview, the request header does’t contain the cookie jssessionid.

To Reproduce:

Expected behavior:

If cookie is set in one side (react-native or webview), the other(webview or react-native) will share the same cookie.

Screenshots/Videos:

Environment:

  • OS: Android and IOS
  • react-native version: 0.59.10
  • react-native-webview version:5.12.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
netgfxcommented, Oct 30, 2019

I don’t have that issue, since I can login to gmail and other sites and even after I close the App and re-enter I am still logged on or my cart has the items added (even if I’m not logged in).

0reactions
SwathyPAcommented, May 15, 2020

Still searching for a solution

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can get cookie which is set in webview in react-native ...
I have tried react-native-cookies which is getting an empty object not the user entered zipcode. import CookieManager from 'react-native-cookies ...
Read more >
How can get cookie which is set in webview in react-native?
just go through the Code or URL. // @flow import React, { Component } from 'react'; import { WebView, } from 'react-native'; class...
Read more >
How to add cookies to a WebView before loading? (Expo)
I want to render a WebView within the app, but before loading it I would like to set cookies. Would can one do...
Read more >
@react-native-cookies/cookies - npm
Start using @react-native-cookies/cookies in your project by running `npm i @react-native-cookies/cookies`. There are 11 other projects in ...
Read more >
WebView - React Native
Boolean value that forces the WebView to show the loading view on the first load. This prop must be set to true in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found