How could I get cookie in webview which is set in react-native?
See original GitHub issueBug 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:
- Created 4 years ago
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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).
Still searching for a solution